Reply to Re: error uploading a script

Your name:

Reply:


Posted by Henrik Hansen on 05/08/06 12:39

"monomaniac21" <mcyi2mr3@googlemail.com> writes:

> Hi all when using a very simple upload script that I know has worked in
> the past i get this errror on a server:
>
> Warning: move_uploaded_file(/home/folder/public_html/image/advert.jpg):
> failed to open stream: Permission denied in
> /home/folder/public_html/admin/edit.php on line 68
>
> Warning: move_uploaded_file(): Unable to move '/tmp/phpNzNVd5' to
> '/home/folder/public_html/image/advert.jpg' in
> /home/pronta/public_html/admin/edit.php on line 68
>
> Here is the function:
>
> move_uploaded_file($file_upload_tmpname,
> "/home/folder/public_html/image/$file_upload_filename");
>
> Any ideas on what might cause this?

Read the error?

failed to open stream: Permission denied in
/home/folder/public_html/admin/edit.php on line 68

Do the webserver have access to the directory you are putting the file?


--
Henrik Hansen

[Back to original 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

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