cclaerhout
Well-known member
I have a basic question, but I can't find a way to avoid the server to display this error: "The server did not respond in time". I've tried to use the sleep command in the loop, but it doesn't work. Since I'm on local with Xamp I can modify the php configuration, but I'm just curious to know what is the proper way to avoid this (a short example would be nice).
Here's the code I've used:
Here's the code I've used:
PHP:
$i = 0;
foreach ($words as $word)
{
//Code
$i++;
if($i > 50)
{
sleep(40);
$i = 0;
}
}