razorsese Posted April 20, 2012 Share Posted April 20, 2012 I got 30 files to convert to png each in a dir containing 5 files I get the maximum execution time when i run the following code: $dir = glob("images/*/*.png"); foreach($dir as $file) { $filename = $file; $files = getimagesize($filename); $img = imagecreatefrompng($filename); imagepng($img,$filename); } Quote Link to comment https://forums.phpfreaks.com/topic/261321-maximum-execution-time-exceed/ Share on other sites More sharing options...
creata.physics Posted April 20, 2012 Share Posted April 20, 2012 If your doing this on a home server you need to change your script timeout time manually in php.ini. If not you need to have it change about 5 pictures at a time to get it all done. Quote Link to comment https://forums.phpfreaks.com/topic/261321-maximum-execution-time-exceed/#findComment-1339107 Share on other sites More sharing options...
razorsese Posted April 20, 2012 Author Share Posted April 20, 2012 thx for help!! Quote Link to comment https://forums.phpfreaks.com/topic/261321-maximum-execution-time-exceed/#findComment-1339109 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.