View Full Version : Upload photo module not runs online

06-11-2005, 10:51 PM
I have developed a little project in PHP. Actually there is a option in a project to upload photos. The project works run 100% well without any error. But when i upload a project to a server, and Add a new image, it displays a following error.

Warning: copy(../../images/Shirt.jpg): failed to open stream: Permission denied in /home/rescueg/public_html/rescue/frontend/admin/addimages.php on line 16

CAn anyone suggests me , is it a permission error, or i usees wrong slashes or what is this.

Kindly help me in this regard.

06-11-2005, 11:36 PM
It could be that copy isn't allowed on your server, have you tried move_uploaded_file instead? It's difficult to say without knowing more information but it's simple enough to check if it's a permission problem, just chmod the relevant files/folders to 0777 and if you still get the error you can probably assume it's not a permission error.

06-12-2005, 10:40 AM
What Is Chmod????

06-12-2005, 11:55 AM
chmod is were you set certain file permissions for a file or folder. so you will need to set it to allow for you to upload into that file.

chmod("/somedir/somefile", 0777);