From:             j dot g dot budnichuk at verizon dot com
Operating system: Solaris
PHP version:      4.3.6
PHP Bug Type:     PHP options/info functions
Bug description:  File Uploading Complete -- Cannot locate file

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




-- 
Edit bug report at http://bugs.php.net/?id=28191&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28191&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28191&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28191&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28191&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28191&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28191&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28191&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28191&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28191&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28191&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28191&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28191&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28191&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28191&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28191&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28191&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28191&r=float

Reply via email to