After writing sleep in PHP, you cannot execute this post. after editing the sleep in PHP at 2015-04-, the webpage is always loading, the result cannot be displayed. The following is the source code & lt ;? Phpignore_user_abort (true); set_time_limit (0); $ k0; $ I PHP cannot be executed after writing sleep
This post was last edited by qq_270000201 at 12:15:35, January 10 ,.
After writing sleep in PHP, the webpage running display is always loading and the result cannot be displayed.
Source code
Ignore_user_abort (true );
Set_time_limit (0 );
$ K = 0;
$ Interval = 5;
Do {
Echo $ k;
$ K ++;
Sleep ($ interval); // you can run the command by commenting out this sentence.
}
While (true)
?>
------ Solution ----------------------
Is there an endless loop with no timeout limit?
------ Solution ----------------------
Whether or not sleep ($ interval );
None of your programs can be normal, because it is an endless loop.
Sleep only prolongs the interval between the two output 0 values.