copy(), permission denied

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
saz
Forum Newbie
Posts: 1
Joined: Wed Mar 29, 2006 9:03 am

copy(), permission denied

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply