album

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jki
Forum Newbie
Posts: 2
Joined: Sun Jun 26, 2005 2:23 pm

album

Post by jki »

hello, please excuse my unintelligence, i'm just starting to get into web design and am trying to understand php.

I put my photography up on a php album @ http://missingnegatives.designforthelove.com/

my problem is that it does not create the thumbnails (i put them in manually) and now when i try to add new images it adds them but gives 2 errors at the top of the page example: when i add 2stones.jpg to Other folder http://missingnegatives.designforthelov ... dir=/Other

I read that i need to "CHMOD the thumbcache folder to 777" can anyone explain how to do this?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: album

Post by Chris Corbyn »

jki wrote:I read that i need to "CHMOD the thumbcache folder to 777" can anyone explain how to do this?
You can do it via FTP (from the command line if you're familiar with FTP commands), or from something like WSFTP Pro if not.

Failing that you can do it via SSH if you have shell acsess... "chmod 777 folder_name"

;)
jki
Forum Newbie
Posts: 2
Joined: Sun Jun 26, 2005 2:23 pm

Post by jki »

Thanks a lot for the comment. i downloaded Ipswitch WS_FTP Pro
but i still don't understand what it means to chmod the thumbcache folder to 777, nor how i would go about doing so, in ws_ftp
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Let's get back to basics.

Folders and files (after all, a folder is kinda a special file) have permissions. That decides who can do what to a file/folder (read/write/execute)...

CHMOD is the command (in unix and on FTP since unix is where FTP began (wonders if this is true)) to change these permissions.

Now, PHP/Apache have their own permissions but if the file/folder they need to use doesn't have the permissions set correctly things will not work; especially writing to a file/folder.

CHMOD combines the read/write/execute permissions into an Octal value... I ain't gonna get into how you calculate it but a quick search on Google will help you there.

777 is FULL permission to everything so PHP/Apache can read/write.

It's been a while since I last used WSFTP but from what I remember, you right click the folder you wish to change. Choose (I cant remember which it is) "chmod" or "advanced -> chmod", then tick all the boxes, or simply type 777 into the value field. It's somewhere in the right click menu anyway ;)
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

d11wtq is correct.

in lpswitch ws_ftp (at least the LE version anyways) you just right click on the folder name, choose "CHMOD" then check all of the boxes.

however LE is not out anymore, so you most likely got the Home Edition, in which case you right click on the file/folder name and go to properties. Then down at the bottom you'll see 3 sets of 3 checkboxes. Check them all.

Edit - I miss the simplicity of LE :(
Post Reply