move_uploaded_file & Permission denied

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
prophecyx
Forum Newbie
Posts: 1
Joined: Thu Aug 07, 2008 6:55 am

move_uploaded_file & Permission denied

Post by prophecyx »

Sorry for my ful questionn.........
This is the problem that i ve tried to solve so long TT
I uploade image file to the directory in server
first..........I ve uploaded in my Apache localhost server--->> It Okay no problem
last..........I ve uploaded in 000webhost and i saw this error

Code: Select all

Warning: move_uploaded_file(student/Haruhi01.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/a6361913/public_html/upload_file.php on line 177
I assume that "the server need some authenticat"
thank you for you help.................pleazzzzzzzzzzzzzzzzzz
filippo.toso
Forum Commoner
Posts: 30
Joined: Thu Aug 07, 2008 7:18 am
Location: Italy
Contact:

Re: move_uploaded_file & Permission denied

Post by filippo.toso »

Verify that the privileges of the destination folder where you want to move the uploaded file are correct (i.e. 777 or 755).
Post Reply