title: unlink() deletes file but returns false
body: <p>I have a problem and I can not solve it. I'm trying to delete a file and echo success messsage, but insted it deletes file but returns false. Here is my code:</p>
  
  <pre><code>if(unlink(".".MEDIA_PATH."/$av")){          
      exit(header("Location: page.php?&amp;msg=success"));
  }
  else{
      exit(header("Location: page.php?msg=fail"));    
  }
  </code></pre>
  
  <p>DanFromGermany helped me! <strong>The solution is: Do not use Windows to programm, use Linux :) The error was because I'm using localhost on Windows OS.</strong></p>