I guess the website I'm working on is hosted on a Windows server. The only base path the hosting company has given me is:
D:\inetpub\hospitalityspecials\
But when using the following script:
///////////////////////////
$uploadDir = "D:/inetpub/hospitalityspecials/admin/pics";
$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>";
//////////////////////////////
...it doesn't work. I called them and they said that the permissions are on and are at 8Mb levels as well. The 'pics' directory has a chmod of 777. What else am I doing wrong?
PLEASE HELP!!! Thanks!