title: Php - Chmod Not Working
body: <p>I want to change the <code>chmod</code> values of the files from the user. But it does not work. My code is;</p>
  
  <pre><code>$chmod = "0777";
  chmod($filename, $chmod);
  </code></pre>
  
  <p>I am entering <code>chmod 777</code>. But the chmod value of the file is <code>1411</code>.
  I tried <code>chmod 0777</code>, <code>777</code>, <code>00777</code>. The results remain the same.</p>