coppermine-gallery.com/forum

Support => Older/other versions => cpg1.1.X Support (standalone) => Topic started by: Oasis on October 14, 2003, 09:07:18 AM

Title: Script timeout
Post by: Oasis on October 14, 2003, 09:07:18 AM
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?
Title: Script timeout
Post by: hyperion on October 14, 2003, 09:26:11 AM
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
Title: Script timeout
Post by: Oasis on October 14, 2003, 05:59:49 PM
thanks.
I set the time limit for db_input to 120 seconds