By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,306 Members | 1,657 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,306 IT Pros & Developers. It's quick & easy.

Maximum execution time of 30 seconds exceeded in creating thumbnails

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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?
Jul 17 '05 #2

P: n/a
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?


http://php.net/set_time_limit
Bob


-----BEGIN PGP SIGNATURE-----
Comment: B. Johannessen <bo*@db.org> - http://db.org/contact/en/

iD8DBQFARRJiooisUyMOFlgRAm/5AJ9D6PENxmPqWmFulCLxzGj92JNfJwCeIJuV
5sbKbv1yFW+x0gZdlLCee6c=
=kzYw
-----END PGP SIGNATURE-----
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.