|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-27 21:48 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 18:00:01 2025 UTC |
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