ejaboneta Posted April 13, 2011 Share Posted April 13, 2011 I've written a script thats going to take a really long time to execute... Whats the best way to do this as far as the server not timing out? My script is calculating some statistics based on other tables in the database and then storing them in another table. The results are going to be hundreds of thousands or maybe even millions of rows. Quote Link to comment https://forums.phpfreaks.com/topic/233648-long-running-script/ Share on other sites More sharing options...
dcro2 Posted April 13, 2011 Share Posted April 13, 2011 set_time_limit(0); //no time limit Unless you're in safe mode... Quote Link to comment https://forums.phpfreaks.com/topic/233648-long-running-script/#findComment-1201309 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.