RE: [PHP] PHP in HTML
| From: | Peter | Date: | Fri, 17 May 2002 02:29:11 +0000 |
| Subject: | RE: [PHP] PHP in HTML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97999@lists.php.net to get a copy of this message | ||
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:wombat@bluetravel.com.au]
Sent: Friday, 17 May 2002 12:14 PM
To: php-general@lists.php.net
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: wombat@bluetravel.com.au.co.jp
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php