Re: cannot run php within html
| From: | Dariush | Date: | Tue, 23 Oct 2001 03:03:24 +0000 |
| Subject: | Re: cannot run php within html | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-4706@lists.php.net to get a copy of this message | ||
you have to modify the PHP mime types to allow parsing of html files,
although I wouldn't reccommend it..
Roger Pang <roger.pang@samsonpaper.com.hk> wrote in message
news:20011012062505.95073.qmail@pb1.pair.com...
> I have written the following html called "test.html" in /var/www/html
> directory :
> <html>
> <body>
> <?php
> phpinfo()
> ?>
> </body>
> </html>
>
> When I access this html with a browser, nothing displayed. However, when I
> renamed it to "test.php", it works.
>
> Anything wrong ? I am running Red Hat 7.1 and chosen to install
everything.
> No change on any config files relating to PHP and Apache.
>
>
>
>