RE: [PHP-INST] inline php not working
| From: | Daniël Beukers | Date: | Wed, 17 Apr 2002 13:00:18 +0000 |
| Subject: | RE: [PHP-INST] inline php not working | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-6660@lists.php.net to get a copy of this message | ||
Thanks for the hint.
> You need to tell apache to parse .html files with the php parser.
> By default apache is setup to parse .php files. Not .html files.
>
> Here is the line from httpd.conf.
> ---------------------------------------
> AddType application/x-httpd-php .php
> ---------------------------------------
It was after I changed that line into:
AddType application/x-httpd-php .php .html
that inline php worked in .html files also...
Cheers,
Daniël.
> Hi,
>
> on my machine, php gets properly executed from .php files but NOT from
> inside .html files.
>
> When I include some inline php-code like <?php echo "hello"
> ?> inside HTML
> files it doesn't get parsed by php.
>
> It seems to me like it's a configuration switch, but I can't
> seem to find
> where.
>
> I'm running FreeBSD 4.5-RELEASE-p2. I installed apache 1.3.24_1 and
> mod-php4-4.1.2 from the ports.
>
> any ideas? thanks,
> Daniël.
>
>