| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Apr 2004
Posts: 548
![]() | Error Messages Just to start this off i know nothing whatsoever about PHP or how to program. I have a site where i upload images to online gallerys. When i upload a picture i get this error message everytime. Warning: copy(/home/chicks/public_html/images/dir/1.jpg): failed to open stream: Permission denied in /home/chicks/public_html/classes/imageupload.class.php on line 24 There was an issue Warning: imagejpeg(): Unable to open '/home/chicks/public_html/images/dir/thumbs/1.jpg' for writing in /home/chicks/public_html/classes/imageupload.class.php on line 57 |
| |
| | #4 (permalink) |
| New Member Join Date: May 2006
Posts: 9
![]() | If you don't know how to chmod it, it's very simple. In your favorite FTP client, right click the directory where the online gallery is. Choose Permissions or something similar, and change the numeric value to 777. thats about it |
| |
| | #7 (permalink) |
| NamePros Legend Join Date: Dec 2005 Location: Philippines - www.Nabaza.com
Posts: 19,785
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | usually server owners/admins will change chmod when they see an abusive script. if it's 755 they change it to 777 so that it will not execute. other than that i don't see any good reasons to do that. |
| |
| | THREAD STARTER #8 (permalink) |
| NamePros Regular Join Date: Apr 2004
Posts: 548
![]() | I just changed all the permission like suggested to 777 and i'm still getting this error message Warning: copy(/home/chicks/public_html/images/dir/5.jpg): failed to open stream: Permission denied in /home/chicks/public_html/classes/imageupload.class.php on line 24 There was an issue Warning: imagejpeg(): Unable to open '/home/chicks/public_html/images/dir/thumbs/5.jpg' for writing in /home/chicks/public_html/classes/imageupload.class.php on line 57 Problem In resizing |
| |
| | #10 (permalink) |
| NamePros Legend Join Date: Dec 2005 Location: Philippines - www.Nabaza.com
Posts: 19,785
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | what's on line 24 and line 57 for imageupload.class.php ? pls. paste it here. chmod 777 also this one /classes/ and also where did you got the script or care to paste just the readme.txt or install.txt ? let us solve this together. im here to help |
| |
| | #13 (permalink) |
![]() Join Date: Jul 2005 Location: Coffs H, Australia
Posts: 3,456
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | a1nerd, There could have been a small problem when chmodding the directories. If you did it in FTP, DON'T! Many ftp clients don't change the permissions at all (from experience), the best way to do it is using the CPanel file manager. SmartFTP is the main problem client, not sure why. Report back
__________________ Free Forums / GoDaddy Coupon Codes (NEW DOMAIN!) / Free Arcade Script / <?='Your computer is '.(1?fine:broken).'.'?> |
| |