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? Link to comment https://forums.phpfreaks.com/topic/219646-getting-around-maximum-execution-time-error/ 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. Link to comment https://forums.phpfreaks.com/topic/219646-getting-around-maximum-execution-time-error/#findComment-1138805 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.