Jump to content

mkdir and file permissions


Recommended Posts


i came up a strange behaviour when playing around. i have this code:

// create folder for new pw site
mkdir('0777', 0777);
mkdir('chmodDir', $config->chmodDir);

and this is what i get:


why is the 0777 folder not having 0777 permissions? and what strange permissions do i get when using $config->chmodDir ?

echo $config->chmodDir shows 0755

thank you for your help :)

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...