I would like to have code for an image that counts the number of times the image is viewed, regardless of what site the image is found on. I want to use the img src tag, and hav
Your script needs to:
header('Content-Type: image/jpeg');
readfile( $path_to_image )
For examples, please see the readfile documentation and Output an Image in PHP.