1

I do a small for loop in PHP on my localhost machine, it contains sleep(60) to echo some text every 60 seconds .. but before the first loop finishes, I got an error in the browser that says:

Request Time-out

Server timeout waiting for the HTTP request from the client.

I've tried a combination of :

ini_set('session.gc_maxlifetime', 86400);

ini_set('max_execution_time', 90000);

set_time_limit(0);

and I've also tried to set these variables in php.ini but to no avail, the browser keeps displaying this message as from the first loop.

I want to know, is this a browser specific time-out ? if yes, where can change this value in Safari/Chrome/IE & FF.

thanks so much in advance.

EDIT: the behavior on FF is different, it keeps loading forever, unlike Safari which displays this message.

JAHelia
  • 6,934
  • 17
  • 74
  • 134

0 Answers0