Re: cannot run php within html
| From: | Carlos Augusto Abarca | Date: | Fri, 12 Oct 2001 18:33:26 +0000 |
| Subject: | Re: cannot run php within html | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-4614@lists.php.net to get a copy of this message | ||
Nothing is wrong, the only problem is that your html server is configured to
interpret files with a php or maybe even php4 extension as php files, so if
you post an html file (with extension htm or html) the server will not
"know" what to do with the PHP code.
In this case just name your html files that use php code with a php
extension (ie. my_file.php)
"Roger Pang" <roger.pang@samsonpaper.com.hk> escribió en el mensaje
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.
>
>
>
>