Parsing html for php

Discussion about BCA's Internet Hosting Service
User avatar
David Gibson
Posts: 602
Joined: Thu 16 Mar 2006 23:45

Parsing html for php

Post by David Gibson » Sun 25 Jan 2009 19:09

Cookie, following our discussion I ran a brief test at localhost and it seems that I can achieve what I desire using a .htaccess file as follows

# Add .phtml as a file type because it does not already exist (on my localhost server)
AddType application/x-httpd-php .phtml

# Add PHP handler for .html and .phtml
AddHandler application/x-httpd-php .html
AddHandler application/x-httpd-php .phtml

So... I'll try that on the BCA server (probably on the Hidden Earth site I guess) and if it works than a) I dont need to trouble you to alter the httpd.conf file and b) the BCRA web site will be much easier to port across.

David Cooke
Site Admin
Posts: 303
Joined: Thu 29 Dec 2005 23:22
Location: Axbridge, Somerset, UK

Post by David Cooke » Mon 26 Jan 2009 04:35

Glad that works.

I've updated the DNS for so the transfer is underway.
Dave Cooke
BCA IT Working Party, BCA Web Services, National Cave Registry Co-ordinator, CSCC Webmaster

Post Reply