[thelist] [PHP] Send it as plain html

apathetic apatheticgenius at gmail.com
Thu Nov 25 17:39:23 CST 2004


On Fri, 26 Nov 2004 09:10:32 +1030, Tim Burgan <email at timburgan.com> wrote:
> I saw somewhere within the last week, how to have a PHP page that the
> browser actually thinks is html. It does everything PHP is supposed to
> do on the server, but when it reaches the browser it has the .html
> extension, not .php

Add the following line to your httpd.conf:

AddType application/x-httpd-php .html

This effectively makes all .html files get parsed as PHP scripts.

Tim


-- 
http://www.apatheticgenius.com/

http://elaborate.sourceforge.net/ - PHP/MySQL wiki engine
http://www.hyperlinkage.com/ - Online RSS reader


More information about the thelist mailing list