Reply to Re: [PHP] failed to open stream?!?

Your name:

Reply:


Posted by Fernando Cosso on 03/28/05 18:54

Use move_uploaded_file instead of copy

> Hi to all.
> I'm uploading file and use this
> copy($_FILES['NewImage']['tmp_name'], 'temp/'.$item_number.'.jpg') or
> die (mysql_error());*
>
> *I have this Warning:*
> Warning*: copy(temp/05V0115.jpg): failed to open stream: Permission
> denied in */var/www/html/afan/admin/add_image.php* on line *12
> *
> chmods:
> admin 0755
> temp 0777
>
> admin/
> |_temp/
> |_add_image.php
>
> What could cause this Warning? Can't find a problem.
>
> thanks for any help
>
> -afan
>

[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

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