My situation: I need to log access to certain pages, there is an authentication information in the url, so I wish by exemple, when I go on:
That I've a file with the information "authentication_hash_here has accessed to folder1/my_file.png"
So I've made a simple .htaccess that redirect to a php script, this php script log the information and display the file.
So that works, BUT I've some problem:
Sometimes I need to generate files, by exemple, xml file, and of course my php script isn't working because he doesn't execute anything. And I think this is a security problem too.
So how can we ask to display a processed file without redirecting to it?
Or more simple: is it a way to ask to apache to:
make a little script(log script heere)
AND display the asked page
Thanks a lot!