if your using apache for you web server .. in httpd.conf you can set it so
you have the following config..
(this is on windows but same basically applies to other OS's)

LoadModule php4_module c:/phpdev/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .html

this will enable .html files to be run through php at the moment you'd have
like this

LoadModule php4_module c:/phpdev/php/sapi/php4apache.dll
AddType application/x-httpd-php .php

there for .html are not run through php and there for the php code in there
is not going to be of use..

hope that helped.



-----Original Message-----
From: Jeremy [mailto:[EMAIL PROTECTED]]
Sent: Friday, 17 May 2002 12:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP in HTML


Hi Folks,

A simple question that has me puzzled, obviously I have a config file wrong
somewhere..

Why does a filename.php file run as php and a filename.html with php code
embedded not produce a php result?

cheers,

Jeremy Burton
Senior Consultant
PERTH TOURIST LOUNGE

Level 2 Carillon City
Murray Street, Perth
Ph: +618 9229 2238
Fax: +618 9229 2220
Email: [EMAIL PROTECTED]




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to