Can anyone give me a PHP example of how the code receives the data ? For example , for the switchboard challenge ? I ran all the tests that the challenge page gave by copying and pasting the switchboard into my script , but how do I put the data in a string when I upload to the site ?
Also , I have a very spacious style of coding. Is there any sort of whitespace condensing done by the site? For example...
Damn! nice work.. it took me 213 bytes, but i don't know where to save another 51 bytes .. i'm keen on getting a look on those <100 byte or even <213 byte code ;)
I'm also having a problem with stdin. I can read from it fine, I just don't know how to tell when there is no more data!
I'm trying the ascii art challenge to get me started but I get timeout errors each time it runs. I think this is beacuse I am waiting for more input which never arrives?
I know that the answer is going to be obvious but any ideas anyone?
Also , I have a very spacious style of coding. Is there any sort of whitespace condensing done by the site? For example...
for ( $x = 0 ; $x < $whatever ; $x ++ ){
$array [ 'levelone' ] [ 'leveltwo' ] = 'value' ;
}
As you can see, I put a space just about everywhere... should I get rid of these before uploading?