Forum Moderators: coopster

Message Too Old, No Replies

Parse ONE html file as php

How to?

         

MWpro

4:02 am on Aug 8, 2003 (gmt 0)

10+ Year Member



Currently I am using this to parse html files as php
"AddType application/x-httpd-php .html"

However I realized that there is only one page that I need to parse. How can I go about doing this? I tried
"AddType application/x-httpd-php index.html" but it did not work.

(I remember seeing this in a thread a few weeks ago; however I cannot find that thread again with the search feature.)

jamie

11:53 am on Aug 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<Files page.html>
ForceType application/x-httpd-php
</Files>

in the .htaccess file

vincevincevince

12:11 pm on Aug 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



correct.

or just change the file to .php :-)

MWpro

7:38 pm on Aug 8, 2003 (gmt 0)

10+ Year Member



thanks a lot jamie

Vince, I wouldn't want to have to do all that work, lol ;)