Garrett Posted November 24, 2010 Share Posted November 24, 2010 I have a simple script that imports all images in a folder to my site and generates thumbnails. It works, but on folders with a rather large amount of images (500+) it can reach the max execution time and give a fatal error. I could always break up my import folders into smaller chunks or increase the max execution time, but I am wondering if there is a different approach I could take. Is there a way to reset the execution time of a script by inserting some kind of a pause/delay? Quote Link to comment Share on other sites More sharing options...
seanlim Posted November 24, 2010 Share Posted November 24, 2010 See this: http://php.net/manual/en/function.set-time-limit.php When called, set_time_limit() restarts the timeout counter from zero. Quote Link to comment 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.