PHP permission of directory
<p>How to check permissions of directory in PHP</p>

<pre><code>$filename = 'dev\permis';
$handle = fopen($filename.'\file.txt', "w");
if (is_writable($filename)) 
{
    echo 'The directory is writeable';
} 
else
{
    echo 'The directory is not writable';
}
</code></pre>

<ol>
<li><p>when i set permisson for permis folder is write ,</p>

<p>the file.txt is created and browser " The directory is writeable"</p></li>
<li><p>when i set permisson for permis folder is deny write ,</p>

<p>the file.txt is not created and browser is still " The directory is write" , why not "The directory is not writeable"</p></li>
</ol>

<p>How to check permission of folder permisson ?</p>
