News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Script timeout

Started by Oasis, October 14, 2003, 09:07:18 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Oasis

Some users on 512/64 ADSL are complaining of script timeouts when uploading photos...

QuoteFatal error: Maximum execution time of 30 seconds exceeded in c:\wwwroot\coppermine\db_input.php on line 17

If I increase the max execution time, will it pose any security risks or server stability problems?
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

hyperion

The main thing the maximum execution time does is prevent a bad script from monopolizing server resources (an infinite loop, for example).  The effect of raising the time limit is different for different situations. In a bad case, you might get a slower server that can't handle some traffic, but the only way to find out is to test it.  

Look here for more info:
http://us4.php.net/manual/en/function.set-time-limit.php

-Hyperion
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Oasis

thanks.
I set the time limit for db_input to 120 seconds
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org