Sussex_Chris
06-02-2010, 12:22 AM
I recently had some work done on my server and since the alterations something has changed although I am not too sure what setting it is.
Before the change I can load a PHP file that loops, E.g.
<?php
$i=0;
while ($i<10000000000){
sleep(1);
echo $i;
$i++;
}
?>
So this is pretty much an endless loop, it would take 10000000000 seconds to complete.
What happens now with a script like this is after 5 minutes the browser stops loading BUT the PHP continues to run. I can tell because I can see the MySQL queries continuing to update.
The issue is not with my browser as on another server the same script works fine, it is just a server option somewhere has changed to timeout user connections, any ideas which one it may be?
Before the change I can load a PHP file that loops, E.g.
<?php
$i=0;
while ($i<10000000000){
sleep(1);
echo $i;
$i++;
}
?>
So this is pretty much an endless loop, it would take 10000000000 seconds to complete.
What happens now with a script like this is after 5 minutes the browser stops loading BUT the PHP continues to run. I can tell because I can see the MySQL queries continuing to update.
The issue is not with my browser as on another server the same script works fine, it is just a server option somewhere has changed to timeout user connections, any ideas which one it may be?