PHP CHMOD

January 16th, 2005

This PHP CHMODing tutorial was contributed by Azekeal.

Note that mode is not automatically assumed to be an octal value, so strings (such as “g+w”) will not work properly. To ensure the expected operation, you need to prefix mode with a zero (0): IE, not 666, but 0666 .

bool chmod ( string filename, int mode);

example:

chmod("somefile.php", 0666);
  • Share/Bookmark
Category: PHP, Web Design
divider

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

divider

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

divider