php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9294 File uploads take ~70 times longer than downloading files on Apache/PHP.
Submitted: 2001-02-16 03:57 UTC Modified: 2001-04-29 13:18 UTC
From: paul at gryphyn dot com Assigned:
Status: Closed Package: Performance problem
PHP Version: 4.0.2 OS: Solaris 2.6, 7, 8 and Windows 20
Private report: No CVE-ID: None
 [2001-02-16 03:57 UTC] paul at gryphyn dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-16 03:59 UTC] paul at gryphyn dot 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-04-29 13:18 UTC] andi@php.net
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.
 [2002-12-26 19:28 UTC] paul at gryphyn dot com
Retested with all versions of PHP 4.0.x and it still failed - super slow. However with version PHP 4.2.3 it works like a charm. A 200MB file uploads in 3-4 minutes when the client and server are on the same windows 2000 server - if uploading from a separate client (machine), to a separate server (apache web server on W2K), it takes about 30-40 seconds. Very good!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC