THE ERROR
Warning: Unable to open '\php2' for reading: No such file or directory in c:\phpdev\www\do_upload.php on line 5
Couldn't copy the file.
HTML SCRIPT (part of)
<FORM METHOD="post" ACTION="do_upload.php" ENCTYPE="multipart/form-data">
File to upload:<br>
<INPUT TYPE="file" NAME="img1" SIZE="30">
PHP SCRIPT
<?PHP
if ($img1_name != "") {
copy("$img1", "/apache/bin/$img1_name")
or die("Couldn't copy the file.");
} else {
die("No input file specified");
}
?>
Success!<br>
You sent: <? echo "$img1_name"; ?>