Hooch Posted August 13, 2009 Report Share Posted August 13, 2009 (edited) 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. Edited August 13, 2009 by Hooch Link to comment Share on other sites More sharing options...
Hooch Posted August 13, 2009 Author Report 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 Report 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 Report Share Posted August 13, 2009 Thanks Guy! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now