You are here: move_upoaded_file permissions problem - Does something need configured on server? « PHP Programming Language « IT news, forums, messages
move_upoaded_file permissions problem - Does something need configured on server?

Posted by bizt on 07/31/06 01:23

Hi,

I am trying to carry out an upload and save file in directory operation
using move_uploaded_file(). However, when I run the script it give me
the following error:

Warning: move_uploaded_file(photos/sonyericsson_t610.jpg): failed to
open stream: Permission denied in
/home/martyn69/public_html/photos/add_photo.php on line 41

Warning: move_uploaded_file(): Unable to move '/tmp/phphPIdIj' to
'photos/sonyericsson_t610.jpg' in
/home/martyn69/public_html/photos/add_photo.php on line 41


I have ensured that the permissions for the folder are set to 777.
Also, I know that the file has been successfully uploaded as I have got
the processing script to display the filename, size, type etc. The
problem occurs at the move_uploaded_file() part. Does something need
configured on the server for this to work?

Cheers

Martyn Bissett

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация