Page 1 of 1

album

Posted: Sun Jun 26, 2005 2:48 pm
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?

Re: album

Posted: Sun Jun 26, 2005 2:53 pm
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"

;)

Posted: Sun Jun 26, 2005 4:50 pm
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

Posted: Sun Jun 26, 2005 5:07 pm
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 ;)

Posted: Mon Jun 27, 2005 5:56 am
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 :(