Hi all, I have the following file upload script
from with a few adjustments made for my computer. My question is does anybody know why the file is uploading to the boat directory and not the user directory![[shocked] [shocked] [shocked]](/data/assets/smilies/shocked.gif)
from with a few adjustments made for my computer. My question is does anybody know why the file is uploading to the boat directory and not the user directory
![[shocked] [shocked] [shocked]](/data/assets/smilies/shocked.gif)
Code:
<?php
$uploaddir = 'C:\Program Files\Apache Group\Apache2\Personal\ses\emporium\boats\user';
$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>";
?>