Trying to upload a file using win xp/iis/php.
I've given full access to all accounts trying to get this to work? Yet
I'm still getting read errors. Simplified the script below to the
bare minimum.
simpleupload.ph p
<form enctype="multip art/form-data" action="upload. php" method="post">
<INPUT TYPE="hidden" name="MAX_FILE_ SIZE" value="200000"/>
<input type="file" name="file1"/>
<input type="submit" value="UploadFi le"/>
</form>
upload.php
<?php
move_uploaded_f ile($_FILES['file1']['tmp_name'],'c:\php\upload perm');
?>
Error
Warning: move_uploaded_f ile(c:\php\uplo adperm): failed to open stream:
Permission denied in C:\Inetpub\wwwr oot\php\upload. php on line 2
Warning: move_uploaded_f ile(): Unable to move
'C:\PHP\uploadt emp\php35.tmp' to 'c:\php\uploadp erm' in
C:\Inetpub\wwwr oot\php\upload. php on line 2
I've given full access to all accounts trying to get this to work? Yet
I'm still getting read errors. Simplified the script below to the
bare minimum.
simpleupload.ph p
<form enctype="multip art/form-data" action="upload. php" method="post">
<INPUT TYPE="hidden" name="MAX_FILE_ SIZE" value="200000"/>
<input type="file" name="file1"/>
<input type="submit" value="UploadFi le"/>
</form>
upload.php
<?php
move_uploaded_f ile($_FILES['file1']['tmp_name'],'c:\php\upload perm');
?>
Error
Warning: move_uploaded_f ile(c:\php\uplo adperm): failed to open stream:
Permission denied in C:\Inetpub\wwwr oot\php\upload. php on line 2
Warning: move_uploaded_f ile(): Unable to move
'C:\PHP\uploadt emp\php35.tmp' to 'c:\php\uploadp erm' in
C:\Inetpub\wwwr oot\php\upload. php on line 2
Comment