I'm trying to create a .txt file on my server that will log the IP,
user agent, and referrer of people who access it, and send back
different contents based on the user agent. The file has to have the
..txt extension because there are already links to the file on other web
sites where I can't change the link URL. Is it possible to have PHP
interpret files with extensions other than .php?
It would also be useful for finding out when other sites refer to files
on my server instead of copying the file to their server.