You are here: Re: Extensions other than .php « PHP Programming Language « IT news, forums, messages
Re: Extensions other than .php

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация