What is Chomd

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
psn
Forum Newbie
Posts: 13
Joined: Wed Jul 17, 2002 10:22 pm

What is Chomd

Post 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
gnu2php
Forum Contributor
Posts: 122
Joined: Thu Jul 11, 2002 2:53 am

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

To confirm what gnu2php said:
the manual wrote:Note: This function is not implemented on Windows platforms.
Mac
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

it is implemented on win32 but only with few modes
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post by Johnm »

What type of OS are you running?
Direwolf
psn
Forum Newbie
Posts: 13
Joined: Wed Jul 17, 2002 10:22 pm

Post by psn »

Im making a test on my computer then uploading.
My computer is Windows 98
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
Addler
Forum Newbie
Posts: 9
Joined: Wed Jul 24, 2002 3:59 am

Post 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
Post Reply