I have a form and upload a file to the web server. I can see the file in the web servers tmp dir. I want to move that file to www.mydomain.com/UploadedFiles
Here is the code I am using:
$TempPath = $_FILES['userfile']['tmp_name'];
if (!move_uploaded_file($TempPath, "www.mydomain.com/UploadedFiles/$OriginalFileName"))
{
echo "File could not be moved.";
echo "<br>";
}
else
{
echo "We were able to move the uploaded file to the tempfilename.";
echo "<br>";
}
When I use my XP system with IIS and use the tmp dir that php uses it works great. When I move the script up to the web server and run it it fails. I know the dir is there I created it via FTP and can see it.
I am not finding alot of help in the books on this one.
Thanks
Frank