John wrote:
I am trying to create thumbnails from 2500 pictures. But I always get
a Maximum execution time of 30 seconds exceeded" at the statement with
the method with imagejpeg or imagedestroy after processing and
creating 500 thumbnails.
Is there anything I can do to avoid this error?
Thank you
John
Is it really necessary to create the 2,500 thumbnails at once? If this is a
one-time batch script and you control the server, you can change the max
execution time setting in php.ini. You might also consider forking off some
processes, or (better yet) break it up into stages. The solution really
depends on the domain... is this a batch script, a web page, or what?