Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Empty reply from server after 120 seconds



Threaded Mode | Print  

 Empty reply from server after 120 seconds (0 Replies, Read 1738 times)
weblid
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?
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is February 20, 2020, 6:04 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.112