php.net |  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
Description:
------------
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....

<?php
// 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";
   print_r($_FILES);
} else {
   print "Possible file upload attack!  Here's some debugging info:\n";
   print_r($_FILES);
}
print "</pre>";

?> 

all appears to be ok....

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

)

PROBLEM::::FILE 2950T.TXT CANNOT BE FOUND ANYWHERE




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-27 21:48 UTC] derick@php.net
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 http://www.php.net/support.php 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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 17:01:28 2024 UTC