Hooch Posted August 13, 2009 Share Posted August 13, 2009 Hello everyone.I have some code made up to resize some images already in a folder.There are over 100 images.So this code takes some time to resize them all.The code works great until this pops up... Fatal error: Maximum execution time of 30 seconds exceeded in /home/mysite/public_html/image_resize/resize.image.class.php on line 113About 233 are made and the error pops up.Is there some way to let the code finish?Thank you. Link to comment Share on other sites More sharing options...
Hooch Posted August 13, 2009 Author Share Posted August 13, 2009 I was worried of doing this...but it seems to have worked.I created a file called php.ini and added this text max_execution_time = 120max_input_time = 120 Link to comment Share on other sites More sharing options...
justsomeguy Posted August 13, 2009 Share Posted August 13, 2009 You can also use ini_set. If you set it to 0 then PHP won't time out (although Apache or IIS may still time out):ini_set('max_execution_time', 0);orset_time_limit(0); Link to comment Share on other sites More sharing options...
Hooch Posted August 13, 2009 Author Share Posted August 13, 2009 Thanks Guy! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.