Re: POST upload script timeout

From: Date: Sat, 13 Dec 2003 14:05:07 +0000
Subject: Re: POST upload script timeout
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-172634@lists.php.net to get a copy of this message
"Eric Bolikowski" <eric@broadpark.no> wrote in message news:20031206151109.34550.qmail@pb1.pair.com... > > "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'); With using ini_set I can now excede the maximum timeout limit (in that I don't get a time limit exceeded message) - however instead of confirming the file was uploaded, I just get a blank screen once the upload is completed, and the net result is that no file was transferred in the end.. :oS

« previous php.general (#172634) next »