afawcett Posted August 30, 2009 Share Posted August 30, 2009 I was follwing the article at:http://www.w3schools.com/PHP/php_file_upload.aspIn the step Saves the uploaded file, I get an error on this line:"upload/" . $_FILES["file"]["name"]);These are my warnings:Warning: move_uploaded_file(upload/IMG_2334.JPG) [function.move-uploaded-file]: failed to open stream: Permission denied in /Users/Andrew/Sites/sound.meukro.org/upload_file.php on line 16Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/private/var/tmp/phpnXMK4t' to 'upload/IMG_2334.JPG' in /Users/Andrew/Sites/sound.meukro.org/upload_file.php on line 16Permission denied? I have the admin account. Link to comment Share on other sites More sharing options...
afawcett Posted August 30, 2009 Author Share Posted August 30, 2009 nvm, i 777'd the php file and not the directory. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.