Re: failed to open stream?!?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux