PDA

View Full Version : Upload page time-out


UncleDoug
16th of March 2005 (Wed), 13:22
Having issues uploading a large quantity of images.

I get them to the upload folder via Transmit FTP client.

When I attempt to upload quite a few images where the "processing time" exceeds 60 seconds my browser returns "can't open the page after trying for 60 seconds" and the upload quits leaving the process incomplete.

PITA!

Any ideas / suggestions?

-Doug

EricKonieczny
16th of March 2005 (Wed), 13:30
How man photos are you uploading at one time. When I have a large batch, I upload like 10 at a time, and it solves the problem

Pekka
16th of March 2005 (Wed), 13:32
place a .htaccess file with line

php_value max_execution_time 1200

in your input folder. 1200 is seconds - change to anything you like.
".htaccess" is the most common control filename - it may differ between servers.

Other options are:

- set max_execution_time in php.ini

- in SCRIPT_upload.php change lines

//ini_set ("max_execution_time","1800");
//$maxtime = ini_get('max_execution_time');

to

ini_set ("max_execution_time","1800");
$maxtime = ini_get('max_execution_time');

If none of above work, then your server admin has disabled you the ability to change php timeout value (have seen those server admins couple of times!).