Problems with move_uploaded_file(). Help!!

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
granite
Forum Commoner
Posts: 44
Joined: Mon Feb 09, 2009 10:52 am

Problems with move_uploaded_file(). Help!!

Post by granite »

Hey there guys,

I'm having problems uploading files using the function move_uploaded_file(). Take a look:
Warning: move_uploaded_file(./connectors/image/montanhasazuis.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/arcamani/public_html/admin/fckeditor/editor/filemanager/browser/default/figuras.php on line 6

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpVqPGmh' to './connectors/image/montanhasazuis.jpg' in /home/arcamani/public_html/admin/fckeditor/editor/filemanager/browser/default/figuras.php on line 6
While searching for a solution around other forums, I've found some answers pointing to security permissions. Then I changed the CHMOD permission to my figuras.php file. They were 755, then I changed them to 766, but it didn't work. Tried 777, and still, didn't work.

Someone, please help me!

Thank you in advance.
User avatar
Ziq
Forum Contributor
Posts: 194
Joined: Mon Aug 25, 2008 12:43 am
Location: Russia, Voronezh

Re: Problems with move_uploaded_file(). Help!!

Post by Ziq »

You should change permission to ./connectors/image/ folder.
granite
Forum Commoner
Posts: 44
Joined: Mon Feb 09, 2009 10:52 am

Re: Problems with move_uploaded_file(). Help!!

Post by granite »

Hah! It worked! :D

Thanks, man!
Post Reply