Tue Sep 06, 2011 1:23 pm
<?php
// Set Permission For Owner :Read and write.
// Everyone else : nothing
chmod("/directory/test.txt", 0600);
// Set Permission For Owner :Read and write.
// Everyone else : read only
chmod("/directory/test.txt", 0644);
// Set Permission For Owner :Everything .
// Everyone else : read and execute .
chmod("/directory/test.txt", 0755);
// Set Permission For Owner :Everything .
// owner's group: read and execute.
// Everyone else : nothing.
chmod("/directory/test.txt", 0750);
// owner, group ,everyone else : read ,write execute.
chmod("/directory/test.txt", 0777);
?>
7 4 4
user group world
r+w+x r r
4+2+1 4+0+0 4+0+0 = 744
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.