|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28191 File Uploading Complete -- Cannot locate file
Submitted: 2004-04-27 21:39 UTC Modified: 2004-04-27 21:48 UTC
From: j dot g dot budnichuk at verizon dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 4.3.6 OS: Solaris
Private report: No CVE-ID: None
 [2004-04-27 21:39 UTC] j dot g dot budnichuk at verizon dot com
with apache 1.3.29 and ph4.3.6   apache starts with PHP ok.....
[Tue Apr 27 15:27:31 2004] [notice] Apache/1.3.29 (Unix) PHP/4.3.6 configured -- resuming normal operations
[Tue Apr 27 15:27:31 2004] [notice] Accept mutex: fcntl (Default: fcntl)

execute this php script to upload file....

// In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead
// of $_FILES.

$uploaddir = '/var/www/uploads/';
$uploadfile = $uploaddir . $_FILES['userfile']['name'];

print "<pre>";
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
   print "File is valid, and was successfully uploaded. ";
   print "Here's some more debugging info:\n";
} else {
   print "Possible file upload attack!  Here's some debugging info:\n";
print "</pre>";


all appears to be ok....

File is valid, and was successfully uploaded. Here's some more debugging info:
Request Number is  
    [userfile] => Array
            [name] => 2950t.txt
            [type] => text/plain
            [tmp_name] => /var/tmp/phpOtaOZO
            [error] => 0
            [size] => 5844




Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-27 21:48 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

And also read the section in the manual on file uploading.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Aug 10 19:01:25 2020 UTC