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" <[EMAIL PROTECTED]> escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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.
>
>
>
>



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to