I'm running a PHP 5.1 on an Apache 2.2 server under Windows XP which I use to develop my web apps.
Currently, I am trying to add "upload" functionality to my project, but for some reason, when the move_uploaded_f ile() function is called on it, the following error is generated:
Now this error may appear to be simple write permission issue, but the account that is running the service has full r/w permissions to the directory that is supposed to host the uploaded file:
See the attachment for a screenshot on my permission settings.
I'm certain that "Web Service" is the account that is running the httpd server.
Any ideas what is causing me a headache?
Currently, I am trying to add "upload" functionality to my project, but for some reason, when the move_uploaded_f ile() function is called on it, the following error is generated:
Warning: move_uploaded_f ile(D:/web_services/httproot/nbprj/img/u) [function.move-uploaded-file]: failed to open stream: Permission denied in D:\Web_Services \php_include\ad min\manimgs.php on line 120
Warning: move_uploaded_f ile() [function.move-uploaded-file]: Unable to move 'D:\Web_Service s\http_inc\phpC 4.tmp' to 'D:/web_services/httproot/nbprj/img/u' in D:\Web_Services \php_include\ad min\manimgs.php on line 120
Warning: move_uploaded_f ile() [function.move-uploaded-file]: Unable to move 'D:\Web_Service s\http_inc\phpC 4.tmp' to 'D:/web_services/httproot/nbprj/img/u' in D:\Web_Services \php_include\ad min\manimgs.php on line 120
Code:
D:\Web_Services\httproot\nbprj\img\u>echo %USERNAME% Web Service D:\Web_Services\httproot\nbprj\img\u>echo "some text" >> file.txt D:\Web_Services\httproot\nbprj\img\u>type file.txt "some text" D:\Web_Services\httproot\nbprj\img\u>del file.txt D:\Web_Services\httproot\nbprj\img\u>
I'm certain that "Web Service" is the account that is running the httpd server.
Any ideas what is causing me a headache?
Comment