kool_samule Posted June 17, 2010 Share Posted June 17, 2010 Hi Chaps, I've got a image upload script that works on my Apache on IIS development server, but on the Apache Lunix live server, although the images are uploaded correctly and the MySQL database is updated correctly, I can't view the images. Viewing the HTML source, checking both the FTP files and the database values, all look OK. But the image doesn't show, just the white box with the red cross in the corner. If I try to copy the shortcut of the image and open it in a seperate window, I get the following: forbidden you don't have permission to access [image path] I'm not sure what to try next, it seems strange that the files/database/source look good but it just won't show! I've tried both $HTTP_POST_FILES and $_FILES to upload the images, but both have the same result. If anyone has any ideas, please help! Quote Link to comment Share on other sites More sharing options...
vbnullchar Posted June 17, 2010 Share Posted June 17, 2010 did you check the upload folders permission? Quote Link to comment Share on other sites More sharing options...
kool_samule Posted June 17, 2010 Author Share Posted June 17, 2010 How do I do that if the upload folder id remotely accessed via FTP? Quote Link to comment Share on other sites More sharing options...
vbnullchar Posted June 17, 2010 Share Posted June 17, 2010 what ftp client are you using? Quote Link to comment Share on other sites More sharing options...
kool_samule Posted June 17, 2010 Author Share Posted June 17, 2010 I've got DreamWeaver for uploading, but I have access to Web - FTP, or Window Explorer . . . Quote Link to comment Share on other sites More sharing options...
vbnullchar Posted June 17, 2010 Share Posted June 17, 2010 try to use filezilla theres a column there that displays the folder permission Quote Link to comment Share on other sites More sharing options...
kool_samule Posted June 17, 2010 Author Share Posted June 17, 2010 OK, done that, I take it I'm supposed to be looking at the Uploaded Image File, rather then the folder? The uploaded file has the permissions: -rw-r--r-- Quote Link to comment Share on other sites More sharing options...
kool_samule Posted June 17, 2010 Author Share Posted June 17, 2010 Hi, I've also tried chmod($path, 0777); the permission now reads: -rwxrwxrwx but it still isn't working . . . anything else that I can try? Quote Link to comment Share on other sites More sharing options...
kool_samule Posted June 17, 2010 Author Share Posted June 17, 2010 sorted it, chmod on folder and file to 0775. thanks for the help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.