|
Posted by Mladen Gogala on 05/28/05 03:17
On Fri, 27 May 2005 13:12:45 -0700, DJ Craig wrote:
> 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.
For Apache2 server you should put
AddType application/x-httpd-php .txt
into your httpd.conf.
--
Demagogue: One who preaches a doctrine he knows to be untrue to
men he knows to be idiots.
H.L. Mencken
Navigation:
[Reply to this message]
|