title: php delete image from server after upload & display
body: <p>Sending an image in my php form, it gets saved onto my server and at the
  action.php page it gets displayed. Now when I try to: </p>
  
  <pre><code>echo '&lt;div id="image"&gt;&lt;img src="'.$target_path.'" width="280" height="280"&gt;&lt;/div&gt;';
  </code></pre>
  
  <p>it works just fine... but if I add <code>unlink($target_path);</code> at the end of my php code it
  will not even display the image even though it gets deleted AFTER displaying the image...</p>
  
  <p>So the question is, how can I display the image and deleting it at the same time so my server does not gets stuffed with user pictures?</p>