Here is the error:
 
PHP Warning: move_uploaded_file(/) [function.move-uploaded-file
<http://www.php.net/function.move-uploaded-file> ]: failed to create
stream: No such file or directory in
D:\wwwroot\kingmanchamber\secure-area\administration\upload\file_upload.
php on line 22 PHP Warning: move_uploaded_file()
[function.move-uploaded-file
<http://www.php.net/function.move-uploaded-file> ]: Unable to move
'd:\Temp\php443.tmp' to '/' in
D:\wwwroot\kingmanchamber\secure-area\administration\upload\file_upload.
php on line 22 
 
Here is the code:
 
<form enctype="multipart/form-data" action="<? echo
$_SERVER['SCRIPT_NAME'];?>" method="post">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
 
<?
if ($_SERVER['REQUEST_METHOD'] == "POST") {
 echo $_FILES['userfile']['name'] . "<BR>";
 echo $_FILES['userfile']['tmp_name'] . "<BR>";
 
 move_uploaded_file($_FILES['userfile']['tmp_name'], "/");
 
 }
?>
 
I am running this on a winxp pro machine iis 5.1, php 4.3.0 running as a
CGI.
 
This code is pretty much from the PHP.net site, so I am a tad baffled on
this one.
 
-Matt


Reply via email to