Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Script timeout  (Read 5462 times)

0 Members and 1 Guest are viewing this topic.

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
Script timeout
« on: October 14, 2003, 09:07:18 am »

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

Quote
Fatal 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?
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Script timeout
« Reply #1 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
Logged
"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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
Script timeout
« Reply #2 on: October 14, 2003, 05:59:49 pm »

thanks.
I set the time limit for db_input to 120 seconds
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 14 queries.