Group: Member
Post Group: Newbie
Posts: 4
Status:
|
Other than max_execution_time in php.ini, is there anything else that could be causing a simple php script to fail after 120 seconds every time?
I have this simple php script...
$start = time();
while(1){
echo "GO \n\n";
sleep(10);
if(time() - $start > 110){
die("COMPLETE");
}
}
The above script will output "COMPLETE" after 115 seconds. However, if I change the time to be "> 120", the server responds with a "Empty reply from server".
My php max_execution_time is set to 2400. I can confirm this with "echo ini_get('max_execution_time')".
I have tried :
set_time_limit(0);
ignore_user_abort(true);
But never can I get the script to execute for more than 120 seconds.
Any suggestions?
|