Re: POST upload script timeout

From: Date: Sat, 06 Dec 2003 15:17:05 +0000
Subject: Re: POST upload script timeout
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-172065@lists.php.net to get a copy of this message
"Iain Staffell" <staffell@blueyonder.co.uk> wrote in message news:20031206134507.11354.qmail@pb1.pair.com... > I have a script on my local machine to allow friends to send me files, as IM > or FTP transfers don't work, and so I would like to accept reasonably large > files (10mb max). I followed some of the examples shown around the net, but > continually found that the file would completely upload before giving an > error message that the maximum execution time of 30 seconds was exceeded in > line 3. Not great when line 3 was set_time_limit(3600); > > I was under the impression that the time spent recieving the file from the > user wasn't included in the execution time, and so timeouts wouldn't be > caused by this? > > The only solution I could find was to physically change the time limit in > php.ini to a large value, which I would rather not do. I am completely > stumped as to why the script times out, I am reasonably sure it behaved the > same when I enclosed everything in one set of <? ?> and put echo's infront > of all the html. > > Here are snippets of my code and ini: > > PHP.INI: > max_execution_time = 30 > max_input_time = 60 > post_max_size = 10M > upload_max_filesize = 10M > > UPLOADS.PHP > http://tcc.hopto.org/uploads.php.txt > > Thankyou for your time :o) ini_set('max_execution_time', '3600');

« previous php.general (#172065) next »