I'm working on my own cms and i'm running into a weird but extremely frustrating problem. I'm using sleep() in the script to delay a process. But... Really basic example set_time_limit( 0 ); $go[]='2'; $go[]='4'; $go[]='1'; sleep(2); print_r($go); PHP: If I put print_r before the sleep it outputs, if I put it after sleep then it doesn't output anything. I don't know wtf could be doing this and i've been staring at it for 90mins already so I'm looking for some help.
Try this? <?php error_reporting(E_ALL); ini_set('display_errors', true); set_time_limit( 0 ); $go = array(); $go[]='2'; $go[]='4'; $go[]='1'; sleep(2); var_dump($go); PHP: You should at very least get "NULL"...
Man how the F is this possible? It's just not outputting anything. I tried the example above but I just don't get any output. I even gave it a new variablename and tried echo'ing it in the end..... f'ing still blank. This is driving me CRAZY!!
Wait a second. Do you run this from a browser? If yes then the request times out. Your code works with php4 as well (checked it, just in case).