I'm running PHP 4.3 on XP pro on IIS.
I'm trying to upload files with the following code:
$uploadfile = $_FILES['userfile']['tmp_name'];
$upfile = $_SERVER['DOCUMENT_ROOT'].'/downloads/'.$_FILES['userfile']['name'];
move_uploaded_file($uploadfile, $upfile);
I keep getting this error:
Warning: move_uploaded_file(/downloads/file_name.txt) [function.move-uploaded-file]: failed to create stream: No such file or directory in c:\inetpub\wwwroot\abandc\upload.php on line 68.
I've set the folder with write access using IIS, I don't undersatnd.
Can anyone please help!!! 😕