title: unlink() with scandir() . php error Permission denied (document/.) and (document/..)
body: <p>In the folder "<code>scanner ()</code>" whether screening, after "<code>unlink ()</code>" and I do unenroll ,If deleting the files in the folder, but I am getting permission denied error :</p>
  
  <pre><code>Warning: unlink(path/.): Permission denied in unlink.php on line
  
  Warning: unlink(path/..): Permission denied in unlink.php on line 
  </code></pre>
  
  <p>my <code>unlink</code> php code :</p>
  
  <pre><code>$Pscan = scandir("img/movieData/$m_folder/poster/");
       foreach($Pscan as $Pscan_name){
           unlink("img/movieData/$m_folder/poster/$Pscan_name");    
       }
  </code></pre>