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
Navigation:
[Reply to this message]
|