title: PHP: Unlink a little too effective
body: <p>I'm in the process of developing a PHP webpage that constructs a .SVG file from a SQL database on the fly, embeds it in the page, and enables a user to interact with it.  These temporary files take on the form SVG[RandomNumber].svg and the unlink function successfully deletes the files with no error messages.</p>
  
  <p>Here's the problem: I assumed that if I invoked the <em>unlink</em> function after the SVG file had loaded for the user, the webpage would be unaffected since the user's browser would have cached the file or whatnot.  Everything works perfectly when no unlink command is present in the code; however, 'unlinking' anywhere -- even at the end of the webpage, causes no object to show at all.  In Firefox there's no trace of the object, and in IE I receive the error "The webpage cannot be found."</p>
  
  <p>So have I deleted the file before the browser uploads it? What's the best way to deal with the general situation?</p>
  
  <p>Thank you.</p>