title: Why can't PHP create a directory with 777 permissions?
body: <p>I'm trying to create a directory on my server using PHP with the command:</p>
  
  <pre><code>mkdir("test", 0777);
  </code></pre>
  
  <p>But it doesn't give full permissions, only these:</p>
  
  <pre><code>rwxr-xr-x
  </code></pre>