[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 05-14-2006, 01:02 PM   #1 (permalink)
NamePros Regular
 
a1nerd's Avatar
 
Join Date: Apr 2004
Posts: 528
55.00 NP$ (Donate)

a1nerd is on a distinguished road


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
a1nerd is offline  
Old 05-14-2006, 01:35 PM   #2 (permalink)
Senior Member
 
Constantin's Avatar
 
Join Date: Jan 2006
Posts: 1,081
269.00 NP$ (Donate)

Constantin is a splendid one to beholdConstantin is a splendid one to beholdConstantin is a splendid one to beholdConstantin is a splendid one to beholdConstantin is a splendid one to beholdConstantin is a splendid one to beholdConstantin is a splendid one to behold


You don't have write permissions on the folder you want to put the file.

Add write permission (via SSH or FTP program).
Constantin is offline  
Old 05-14-2006, 02:54 PM   #3 (permalink)
NamePros Regular
 
cvxdes's Avatar
 
Join Date: Oct 2005
Location: Milford MA
Posts: 692
96.45 NP$ (Donate)

cvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud ofcvxdes has much to be proud of


Chmod the dir to 777
cvxdes is offline  
Old 05-14-2006, 07:06 PM   #4 (permalink)
New Member
 
Join Date: May 2006
Posts: 9
0.00 NP$ (Donate)

prototypexx is an unknown quantity at this point


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
prototypexx is offline  
Old 05-14-2006, 07:13 PM   #5 (permalink)
NamePros Legend
 
weblord's Avatar
 
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,840
21,700.43 NP$ (Donate)

weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness

Autism Protect Our Planet
chmod 777 /images/
chmod 777 /images/dir/
chmod 777 /images/dir/thumbs/
weblord is offline  
Old 05-14-2006, 07:26 PM   #6 (permalink)
NamePros Regular
 
a1nerd's Avatar
 
Join Date: Apr 2004
Posts: 528
55.00 NP$ (Donate)

a1nerd is on a distinguished road


Do you think my host chaged the permissions since i never changed them to where they are at now?
a1nerd is offline  
Old 05-14-2006, 07:44 PM   #7 (permalink)
NamePros Legend
 
weblord's Avatar
 
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,840
21,700.43 NP$ (Donate)

weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness

Autism Protect Our Planet
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.
weblord is offline  
Old 05-14-2006, 07:45 PM   #8 (permalink)
NamePros Regular
 
a1nerd's Avatar
 
Join Date: Apr 2004
Posts: 528
55.00 NP$ (Donate)

a1nerd is on a distinguished road


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
a1nerd is offline  
Old 05-14-2006, 08:00 PM   #9 (permalink)
New Member
 
Join Date: May 2006
Posts: 9
0.00 NP$ (Donate)

prototypexx is an unknown quantity at this point


theres the Permission denied error again.. dont know what to say.


ive had this problem before and i think what i did was chmod the files and not the dir..


so in your case chmod imageupload.class.php ?
prototypexx is offline  
Old 05-14-2006, 08:11 PM   #10 (permalink)
NamePros Legend
 
weblord's Avatar
 
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,840
21,700.43 NP$ (Donate)

weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness

Autism Protect Our Planet
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
weblord is offline  
Old 05-15-2006, 08:12 AM   #11 (permalink)
NamePros Member
 
Join Date: Apr 2005
Posts: 116
134.00 NP$ (Donate)

mikesherov will become famous soon enoughmikesherov will become famous soon enough


sounds like if you haven't changed anything, you ran out of disk space.
mikesherov is offline  
Old 05-15-2006, 08:53 AM   #12 (permalink)
Senior Member
 
Xyzer's Avatar
 
Join Date: Aug 2005
Location: United Kindom
Posts: 1,506
90.70 NP$ (Donate)

Xyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to all

Tsunami Relief AIDS/HIV
If the dir was chmodded and it doesnt work, youve got problems, if you never did chmod the dir, thats what you need to do, the host shouldnt have touched it.
Xyzer is offline  
Old 05-15-2006, 03:36 PM   #13 (permalink)
 
BillyConnite's Avatar
 
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,107
47.00 NP$ (Donate)

BillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant future

Wildlife Parkinson's Disease Parkinson's Disease
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
__________________
<?php if(1===1){ $computer="fine."; }else{ $computer="broken."; } echo "Your computer is ".$computer; ?>
BillyConnite is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 02:56 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85