Re: php code embedded inside html page not working.

From: Jochen Daum (jochen.daum_at_cabletalk.co.nz)
Date: 03/18/04


Date: Thu, 18 Mar 2004 17:16:16 +1300

Hi Sams,
On 17 Mar 2004 20:12:52 -0800, sams@freeddns.org (sams) wrote:

>How do I make or workaround in my Apache server to parse *.html files
>for
><?php ?> code embedded in it?
>
>Currently php recognises <?php ?> tag only if the file has a *.php
>extension. Any php code inside *.html or *.htm is ignored.
>
>Since I dont have admin access to the server or admin person, changing
>the php configuration is out of choice. Now I have to go thru echo
>and print statemnets to get it work. But it looks very cumbersome and
>prone to errors.
>
>Any other suggestions to simplyfy my struggle?
>
Why do you not rename the file?

HTH, Jochen

-- 
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/


Relevant Pages