Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2001 21:23:43 +0100
From:      "mark / badger?" <mark@wellgroomedbadger.co.uk>
To:        "Gerald T. Freymann" <freymann@eagle.ca>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: quick php/apache question re the tags
Message-ID:  <00de01c15680$7aaec040$cdeb1e3e@mark2>
References:  <00de01c1567d$2c2f1b70$0f01a8c0@phantom> <00b701c1567e$8d8b4ff0$cdeb1e3e@mark2> <00f001c15680$7cd0b5e0$0f01a8c0@phantom>

next in thread | previous in thread | raw e-mail | index | archive | help
> > Couple of possibilities - the file must have the extension .php to be
> > recognised by apache as php-parseable
>
>  Well, that part I know works ;-)

yes, sorry, reading the question wrong...

>  I'm trying to be able to embed php commands in .html files and have them
> processed as well.
>
>  I used "apachetoolbox" to do the installation of apache/php. There's
some
> simple option that likely needs to be in my httpd.conf file but I can't
> find it.

This will have the effect of parsing ALL webpages for php - on a busy
webserver this could be a performance hit if you serve a lot of static HTML
that doesn't need parsing. However...

I think adding in another line like :

    AddType application/x-httpd-php .php


Except reading :

    AddType application/x-httpd-php .html
    AddType application/x-httpd-php .htm

Should work... you may be able to combine them all on one line, not sure if
this:

    AddType application/x-httpd-php .php .html .htm

will work or not, give it a try if you're not on a production machine and
see what happens :+)

Hope this works...

Mark



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00de01c15680$7aaec040$cdeb1e3e>