470,849 Members | 1,092 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

error uploading a script

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?

May 8 '06 #1
1 1147
"monomaniac21" <mc******@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
May 8 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by John Morgan | last post: by
1 post views Thread by tom_burrow | last post: by
chunk1978
3 posts views Thread by chunk1978 | last post: by
reply views Thread by pere | last post: by
rahulephp
4 posts views Thread by rahulephp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.