title: Deleting a file using a link in php
body: <p>I am making an intranet customer manager that runs on a standalone pc. The shop will add files to each of the customer records and when each record is loaded the contents of each customers folder is echo'd out on the screen inside A tags so the staff can click on it and view the documents that have been added for that customer.</p>
  
  <p>I am trying to add a delete link to each of the user record pages but I'm not having much luck. I am using the following, I'm not sure if I need to get another php file to do the deleting or if I can put it into a link like this ?.</p>
  
  <pre><code> echo '&lt;a href="unlink(./customer-files/'.$customerID.'/'.$filename-&gt;getFilename().');"&gt;Delete File&lt;/a&gt;';
  </code></pre>
  
  <p>When clicking the link all I get is >></p>
  
  <pre><code>The requested URL /customermgr/unlink(./customer-files/5/customeraddnewfile.jpg); was     not found on this server.
  </code></pre>
  
  <p>EDIT >>>></p>
  
  <p>This is going on a LOCAL install, not connected to the internet, so security is not an issue here as there is ZERO chance of anyone breaking into this as its not connected to the internet. I was just looking for the quickest and simplest way of doing it without having to write too much extra code :) .</p>