This topic is locked

Unable to load picture to my own site but works fine at the Demo site

1/28/2008 12:13:01 PM
PHPRunner General questions
A
asidu author

I am not able to upload picture files to my own site.
Get the following PHP error
Error description fopen(upload/tht3m1-20080129-005920.png) [function.fopen]: failed to open stream: Permission denied

URL localhost/~demo/_FileAndPhoto_add.php?

Error file /home/demo/public_html/_FileAndPhoto_add.php

Error line 108.
However when I put the project on the Demo site I can upload the pictures which can be displayed from the database.

I have made the upload directory 766 but its not of any help.
Looks like a permission issue but I am not sure what to check.

Is there any other setting that need to be done for my own server before pictures could be uploaded.
Any pointers would be appreciated.

M
mmponline 1/28/2008

You'll have to change the folder attributes. Eg. owner, group and public permissions. I normally use a FTP program to do this or you'll have to ask your service provider if you don't know how. These settings is also called the CMOD settings.
Hope you'll be able to sort ths out.

A
asidu author 1/29/2008

You'll have to change the folder attributes. Eg. owner, group and public permissions. I normally use a FTP program to do this or you'll have to ask your service provider if you don't know how. These settings is also called the CMOD settings.

Hope you'll be able to sort ths out.


Thanks Stephan. Indeed it was a directory permission problem. I had to have read, write and execute rights, from the top of my directory of web page right up to the upload file directory.
That sorted the issue.
Many thanks for your time.