You can also change the apache config to use php for .html pages. 

example in apache 2.0.x:

<VirtualHost a.b.c.d:80>
  ... normal stuff like documentroot, servername, ..
  <Files *.html>
    SetOutputFilter PHP
    SetInputFilter PHP
  </Files>
</VirtualHost>
Or globally in the /etc/httpd/conf.d/php.conf, add a:
<Files *.html>
  SetOutputFilter PHP
  SetInputFilter PHP
</Files>

Example in apache 1.3.x:
Between the <IfModule mod_mime.c> and </IfModule> tags, add the
following:
AddType application/x-httpd-php .html

Kind regards,
Dries Verachtert



On Thu, 2002-11-07 at 22:27, 1LT John W. Holmes wrote:
> > PHP isn't working in my html docs - what changes do I need to make to get
> it
> > to do so?  Does it need to be recompiled?  Can I do it without
> re-compiling?
> 
> Give your file a .php extension, maybe?
> 
> ---John Holmes...
> 
> 
> -- 
> 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