For example,
if a user is accessing an image file on my server, is it possible to execute
another PHP file at the same time?
I want to record the ip, HTTP_USER_AGENT and HTTP_ACCEPT_LANGUAGE of the
users who have accessed this image file. The difficult point is how to
execute (or may say “trigger”) that PHP recording file at the time the user
is accessing the image. I know I can read the content of the image to the PHP
first then output it as an image and record the user's information meanwhile,
but this method may occupy so much memory usage when the size of the image
file is very large. For this reason, is it possible to make the user access
the image file directly but also can trigger another PHP file at the same
time?