Web Browser Timeout on Upload Script
| From: | Matt Cassarino | Date: | Wed, 23 Feb 2005 21:26:18 +0000 |
| Subject: | Web Browser Timeout on Upload Script | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-209294@lists.php.net to get a copy of this message | ||
Thanks for your link to set_time_limit( ) Jay. However, I tried adding the set_time_limit code into
my page that processes the uploaded file and I am still getting the timeout.
I have also tried adding the set_time_limit code onto my page with the HTML form that calls the
upload script page. I get the same timeout error.
For Firefox and Netscape:
"Alert: the document contains no data."
Internet Explorer just brings up a dead page after 5 minutes.
Here is the code I used at the top of my PHP page that processes the uploaded file:
set_time_limit(2000);
Maybe I have to add the set_time_limit code to the HTML page with the form? But how do I do this?
Any ideas?
Thanks a bundle!
Matt
----- Original Message -----
From: Matt Cassarino
To: php-general@lists.php.net
Cc: Matt Cassarino
Sent: Wednesday, February 23, 2005 1:01 PM
Subject: Web Browser Timeout on Upload Script
Hi,
I am running a simple Upload script in PHP using a HTML Form with a File field. The user can browse
their computer and upload a file. It works great, except for large files, where the browser will
timeout. The timeout appears to happen after about 5 minutes. Any ideas on how to get around this?
Ideal solution would be on the server side b/c I don't want to have my users set a browser
option.
Thanks a lot!
Matt Cassarino
Cell: (206) 484-4626
Web: www.mattcass.com
Email: mc@mattcass.com