|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-02-10 05:45 UTC] faraco dot phpbugs at mailnull dot com
[2005-01-25 15:27 UTC] sniper@php.net
[2005-02-02 01:00 UTC] php-bugs at lists dot php dot net
[2009-07-13 20:15 UTC] litoka at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 15:00:01 2025 UTC |
Description: ------------ When running PHP 4.3.4 (also 4.3.2) in FastCGI mode, the http upload of files occasionally results on "Page Cannot Be Displayed". Some comments: 1. The SAME file sometimes is uploaded successfully and sometimes is not. So, no problems with MAX_FILE_SIZE (HTML script) or UPLOAD_MAX_FILESIZE, POST_MAX_SIZE (PHP.INI) settings. 2. No problems with plain/text files uploads. These intermittent problems seem to occur only with binary files. 3. On a manual test, in 60 seconds, the same requisition failed 8 times and succeeded other 4. Reproduce code: --------------- up.html ----------- <html><body> <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="MAX_FILE_SIZE" value="20971520"> <input name="userfile" type="file"><br> <input type="submit" value="Send files"> </form> </body></html> upload.php ---------- <? if(move_uploaded_file($_FILES['userfile']['tmp_name'], "uploaded/".$_FILES['userfile']['name'])) { echo "SUCCESSFULL"; } else { echo "ERROR<br>"; print_r($_FILES); } ?>