title: php unlink file
body: <p>I've such a situation. I want to delete .wav file which is out of webroot directory , but I've defined in httpd.conf (apache) alias of this directory like "mp3" . this is working nicely, because I can download file from webroot and so on ... But I want to delete it also which I can't do. I have <code>PHP</code> script like this =></p>
  
  <pre><code>class Delete{
     public function del_directory_record($filename){
      if (unlink("/mp3/$filename")){
          return true;
      }
  }
  }
  
   $new = new Delete();
   $new-&gt;del_directory_record("file.wav");
  </code></pre>
  
  <p>In php-errors it gives me "<strong>PHP Warning => No such file or directory</strong>"
  I'm interested in what I'm doing wrong ?</p>
  
  <p>It still doesn't work ...</p>
  
  <p>I've at C:\server\webroot...
  and I have directory mp3_files at C:\server\mp3_files
  In httpd.conf I've written</p>
  
  <pre><code>Alias /mp3/ "C:/server/mp3_files/"
  &lt;Directory "C:/server/mp3_files/"&gt;
  AllowOverride None
  Order deny,allow
  Deny from all
  Allow from 127.0.0.1
  &lt;/Directory&gt;
  </code></pre>