title: php and chmod does not work
body: <p>Hi I want to write a file by using php, but first I should set permissions. When I try <code>chmod($file,0777);</code> it doesn't work and returns false.</p>
  
  <p>What should I do for enable chmod function?</p>