|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-01 15:11 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 03:00:01 2025 UTC |
Form POST related: Using the Windows compiled binaries. Version 3.0.14 gives a file name for uploaded files, but there is no file there. Version 4 Beta 3 works fine. PHP 3.0.14 output: Warning: Unable to open 'C:\\WINDOWS\\TEMP\\php2' for reading: Unknown error in webpages/FileUtil.php3 on line 16 Warning: Unlink failed (Permission denied) in webpages/FileUtil.php3 on line 17 File uploaded as: autoexec.bat PHP 4 output: File uploaded as: autoexec.bat Code Segment: <? //check for file upload if ( 1 > strlen( $path ) ) { $path = "."; } else { $path = rawurldecode( $path ); } if(isset($uploadedFile)) { $generatedFileName = $path; $generatedFileName .= "/"; $generatedFileName .= $uploadedFile_name; copy( $uploadedFile, $generatedFileName ); unlink( $uploadedFile ); echo "<H2>File uploaded as: ", $uploadedFile_name, "</H2>"; } ?>