jk11uk Posted April 3, 2009 Share Posted April 3, 2009 Hi I have a script which runs through a while loop to do some thing x times. during every loop, it runs a function and then sleeps for a random time between 2 and 6 seconds. the function its self has a while loop which also has a sleep in it (between 1 and 3 seconds). Is this a problem? - i'm currently getting a 500 error if u use over a certain amount of the first while loop. but it works on smaller numbers of loops Link to comment https://forums.phpfreaks.com/topic/152362-php-script-delays/ Share on other sites More sharing options...
doddatika Posted April 3, 2009 Share Posted April 3, 2009 Does the timeout happen in around 30 secs? max_execution_time in php.ini has a value of 30 secs. Try changing this value and see what happens. There are other parameters in PHP.ini. Try changing them. Link to comment https://forums.phpfreaks.com/topic/152362-php-script-delays/#findComment-800191 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.