How to set the properties of a file to 0777?
<p>How can I set the properties of a file to 0777 which i created through php create file?</p>

<pre><code>$myFile = "test.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = 'test';
fwrite($fh, $stringData);
fclose($fh);
</code></pre>
