Page 1 of 1

copy(), permission denied

Posted: Wed Mar 29, 2006 9:08 am
by saz
Hi there

I have little to no experience of PHP and I can't get hold of my programmer friend! Can anyone suggest any fixes for this please (in the most simplest of explanations if poss please!). Its when i try to upload a jpeg through a PHP written content management solution, here's the error:

Code: Select all

Warning: copy(/u01/apache/htdocs/images/resorts/pics/117.jpg) [function.copy]: failed to open stream: Permission denied in /u01/apache/htdocs/manage/resort_edit.php on line 36
I have access to all the php files if anyone needs to view the code from any to help me.

Many thanks for your help in advance.

Posted: Wed Mar 29, 2006 9:22 am
by feyd
PHP does not have permission to manipulate the referenced file-path. If it is the source, PHP will need read permission. If it is the destination, PHP will need write permission.


If you want help in the future, make your topic's title descriptive. "PLEASE HELP!" is completely useless as damn near everyone posting a thread here wants help and it doesn't tell us what you need help with. You should also be aware that descriptive titles is a rule here.