Re: php code inside html doesn't work
| From: | Fred | Date: | Fri, 30 Nov 2001 08:29:35 +0000 |
| Subject: | Re: php code inside html doesn't work | ||
| References: | 1 2 3 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-5146@lists.php.net to get a copy of this message | ||
I mentioned the wrong ini file. To get this to work you need to edit your
httpd.conf file.
Find the line that looks similar to this:
AddType application/x-httpd-php .php
and change it to look like this:
AddType application/x-httpd-php .php .htm .html
and all should be fine
Fred
Byunsung Cho <bscho@utah3d.com> wrote in message
news:20011130013249.64584.qmail@pb1.pair.com...
> My html file, test.htm, looks like this:
>
> <html>
> <head>
> <title>Example</title>
> </head>
> <body>
>
> <?php print( "Hello" ); ?>
>
> </body>
> </html>
>
> It doesn't print anything while the php file, test.php, print Hello on the
> screen.
> The test.php looks like this:
>
> <?php print( "Hello" ); ?>
>
> In this case, do I need to change my php.int file as you said?
>
> Thank you for the help.
>
> -Cho
>
>
>
>