Page 1 of 1

What is Chomd

Posted: Wed Jul 24, 2002 9:32 pm
by psn
What is Chomd
How do you CHOMD a file
what is CHMOD 777?How do you do that.
Can you do it on your own computer

Posted: Thu Jul 25, 2002 12:49 am
by gnu2php
What is Chomd
It's a command that lets you change the permission settings for a file/folder. See http://www.php.net/chmod

How do you CHOMD a file
chmod($file, 0755), chmod($file, 0666), chmod($file, 0777), etc.

what is CHMOD 777?How do you do that.
The 777 means "full permission" or "full access"--anyone can read/write/execute the file.

From a technical standpoint, here's the different bit settings that you can combine:

Code: Select all

Owner:
0100 Execute
0200 Write
0400 Read

Group:
0010 Execute
0020 Write
0040 Read

Other:
0001 Execute
0002 Write
0004 Read
Can you do it on your own computer
That depends on your Operating System. It works in Unix, but not in Windows, I think.


Also note that:
PHP Manual - 'User Contributed Notes' wrote:chmod does not work when PHP's Safe Mode is enabled

Posted: Thu Jul 25, 2002 1:43 am
by twigletmac
To confirm what gnu2php said:
the manual wrote:Note: This function is not implemented on Windows platforms.
Mac

Posted: Thu Jul 25, 2002 7:59 am
by volka
it is implemented on win32 but only with few modes

Posted: Thu Jul 25, 2002 8:10 am
by Johnm
What type of OS are you running?
Direwolf

Posted: Thu Jul 25, 2002 3:30 pm
by psn
Im making a test on my computer then uploading.
My computer is Windows 98

Posted: Fri Jul 26, 2002 1:48 am
by twigletmac
psn wrote:My computer is Windows 98
Then you don't need to chmod anything on your home computer. You may need to chmod files if you are uploading to a Unix server though.

Mac

Posted: Fri Jul 26, 2002 2:25 am
by Addler
I haven't read all the posts, but I only assume he is setting up a board system like this beautiful one we are on. Thus, you right click the config file in the ftp window, find chomd(sp) and change it to 777 and then once whenever back to 666 - thats what I always do.. did I make -any- sense? LOL