i am trying to upload a file but it never gets uploaded. note that i am running php 4.0.6 on my pc and i am just trying to see if my script is able to upload a file via http from my pc to my pc. my upload_tmp_dir is set to the desktop. what am i doing wrong?
<form enctype="multipart/form-data" action="<?=$PHP_SELF?>" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
<?
if (is_uploaded_file($HTTP_POST_FILES['userfile']['name'])) {
copy($HTTP_POST_FILES['userfile']['name'], "C:\FoxServ\www");
} else {
echo $HTTP_POST_FILES['userfile']['name']." not uploaded";
}
?>