title: PHP unlink function does not want to work
body: <p>So I want to unlink a file using PHP, I send the file path to PHP through a link in HTML. When I echo the path it's correct, but when I use unlink it gives me these weird HTML tags inside the path aswell.</p>
  
  <p>Heres my code:</p>
  
  <pre><code>&lt;?php
      $fName = $_GET['name'];
      $fExt = '.epub';
      $fPath = $fName . $fExt;
      echo $fPath;
      unlink ($fPath);
  ?&gt;
  </code></pre>
  
  <p>Heres the link:</p>
  
  <pre><code>echo '&lt;a href="delete.php?name=ebooks/'.urlencode($name).'" onclick="return confirm(\'Are you sure?\')"&gt;Delete&lt;/a&gt;';
  </code></pre>
  
  <p>This is what the script outputs in the browser window:</p>
  
  <p>ebooks/alice.epub</p>
  
  <pre><code>Warning: unlink(ebooks/
  
      &lt;span class="title"&gt;alice&lt;/span&gt;&lt;span class="author"&gt;&lt;/author&gt;.epub): Invalid argument in C:\xampp\htdocs\assignment\delete.php on line 6
  </code></pre>