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]
|