coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: kevin11 on August 12, 2006, 07:53:26 AM

Title: timeout when uploading large files
Post by: kevin11 on August 12, 2006, 07:53:26 AM
The time limit may be changed by adding the following declaration near the beginning of the file:
set_time_limit(x);

where x is the number of seconds you desire. A setting of 0 removes the time limit restriction.  Remember that this call is subordinate to the setting in php.ini, so you cannot use it to overcome a restriction there. More information can be found in the PHP manual:

http://us4.php.net/manual/en/function.set-time-limit.php

and i went into the php.ini and changed it to "0" but how come i'm still getting timeout?  is there another file i need to change?

Thanks
Title: Re: timeout when uploading large files
Post by: Joachim Müller on August 12, 2006, 06:52:00 PM
1) If you're web-hosted, you simply may not have permissions to (re-)set this. When in doubt, ask your webhost.
2) Server-sided time-outs may be one issue. Client-sided time-outs (browser, OS, connection) might have to be taken into account as well.
3) Other server-sided restrictions (see sticky thread on this sub-board) might have to be taken into account as well.
4) You (as coppermine admin) should use FTP-upload plus batch-add anyway (refer to documentation)