Angelo binc2 wrote:

Hi all I am trying to upload a file using PHP.

I can successfully create a folder, but when I try upload the file it
gives me the following error when using the move_uploaded_file function:


Warning: move_uploaded_file(c:/program files/apache
group/apache/htdocs/zerodocs/40/) [function.move-uploaded-file]: failed
to create stream: Permission denied in c:\program files\apache
group\apache\htdocs\zero\opdocument.php on line 80


Please post only the relevent sections of your code in future messages instead of the complete script. You are more likely to get an answer then.

This problem reffered to seemed to be caused by the user that owns the webserver process not having the write permissions for the folder that you have created. I am sure this would have been discussed in the user contributed comments under the file uploaded sections of the manual. Usually giving write permissions is all that it would take.


-- Raditha Dissanayake. --------------------------------------------- http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to