Bug #10800: File uploads take ~70 times longer than downloading files on Apache/PHP.
| From: | paul at gryphyn dot com | Date: | Thu, 10 May 2001 21:51:00 +0000 |
| Subject: | Bug #10800: File uploads take ~70 times longer than downloading files on Apache/PHP. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-54794@lists.php.net to get a copy of this message | ||
From: paul@gryphyn.com
Operating system: NT 2000
PHP version: 4.0.5
PHP Bug Type: Apache related
Bug description: File uploads take ~70 times longer than downloading files on Apache/PHP.
I logged this prior to PHP 4.0.5 and was told to do it again if it still occurs. Please help:
ID: 9294
Updated by: andi
Reported By: paul@gryphyn.com
Old-Status: Open
Status: Closed
Bug Type: Performance problem
PHP Version: 4.0.2
Assigned To:
Comments:
Please try PHP 4.0.4pl1 or 4.0.5 which is due out tomorrow and open a new bug report
if this still happens.
Previous Comments: ---------------------------------------------------------------------------
[2001-02-16 03:59:04] paul@gryphyn.com
Sorry - I'm also using code like this to do the upload:
<FORM ENCTYPE="multipart/form-data" ACTION="_URL_" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="200000000">
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>
---------------------------------------------------------------------------
[2001-02-16 03:57:16] paul@gryphyn.com
When performing a file upload, PHP runs the CPU to 100% and takes 3.5-4 minutes on
a Pentium III 850MHz CPU to upload a 10MB file when downloading the same file on
Apache/PHP only takes 3 seconds on the same host and client. It appears the file
is being parsed when being uploaded. Is there an option to tell PHP to upload the
data and nothing else? Otherwise, it is roughly 70 times slower to upload a file
than to download one.
I'm using Nusphere's CD when installing the software.
--
Edit Bug report at: http://bugs.php.net/?id=10800&edit=1