title: how to delete a file in php from a directory
body: <p>I am logged into Windows with an administrator account.</p>
  
  <p>I used the <code>unlink($filename)</code> function to delete a file using php but it gives me the following error:</p>
  
  <blockquote>
    <p>Warning: unlink(C:/wamp/www/jedda/wp-content/uploads/) [function.unlink]: Permission denied in C:\wamp\www\Jedda\wp-content\plugins\course management\course_file.php on line 242</p>
  </blockquote>
  
  <p>So how can I delete the file using php?</p>