PHP5 code within HTML/XHTML documents

Ant Cunningham prodigitalson at vectrbas-d.com
Thu Jan 10 02:56:14 UTC 2008




On 1/9/08 9:49 PM, "Larry Hartman" <larryhartman50 at vzavenue.net> wrote:

> The following line will not display output in firefox/konqueror when placed
> within index.html:


HTML documents (ie. *.html) don't process as php by default. You can either
change the filename to *.php or you can set .html files to be rendered as
php in your conf, your vhost container, or a .htaccess file. I believe the
directive you want is:

AddHandler php5-script .html

I could be wrong about that though... Consult the Apache docs if that
doesn't work... Really though id just use the proper extension if I were
you.

-ant






More information about the kubuntu-users mailing list