title: Want to show an image from the execution of a PHP script
body: <p>So, i want to do some metrics about the times one image is open, i need to give my users the link of the image but i need to track how many times they open it.</p>
  
  <p>If i give them the link like <code>http://webserver.com/image.png</code> i cant track how many times the images is opened, so i think if i can make a PHP script who streams the binary data when the user calls the link like <code>http://webserver.com/image.php</code>, it maybe works.</p>
  
  <p>In this scenario, i can simple write a metric script to store information like ip and time, but <em>i don't know how to <strong>echo</strong> the image in order to show it on the browser.</em> I think that maybe if i open the image in binary mode from the PHP script and then stream that information to the user it will work, but in this area i know nothing.</p>
  
  <p>Some people can say that i can simple do an <code>echo("image.png");</code> at the end of the script but this won't work if you think a little more.</p>