php-install | 2002112
Date: 11/27/02
- Next message: John Coder: "Re: [PHP-INST] PHP Code in .html/.htm pages"
- Previous message: Vincent Courcelle: "[PHP-INST] obdc doesn't like me ?"
- Next in thread: John Coder: "Re: [PHP-INST] PHP Code in .html/.htm pages"
- Reply: John Coder: "Re: [PHP-INST] PHP Code in .html/.htm pages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
If I name my file .php and run the printinfo() routine, I get output. But
when the file is named .html or .htm, the printinfo() just displays in the
page.
Is there a way to get .html files to execute the PHP code within them? For
example, the following code will only work from within a file with .php as
the extension:
(index.php)
<?php
print ("Hello World!<P>");
phpinfo();
?>
This will display as expected showing the PHP environment in pretty tables.
When I rename index.php to index.htm, I get output that looks like this:
"); phpinfo(); ?>
Can't PHP code be inserted in .html named files?
Bob Kramer
-- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: John Coder: "Re: [PHP-INST] PHP Code in .html/.htm pages"
- Previous message: Vincent Courcelle: "[PHP-INST] obdc doesn't like me ?"
- Next in thread: John Coder: "Re: [PHP-INST] PHP Code in .html/.htm pages"
- Reply: John Coder: "Re: [PHP-INST] PHP Code in .html/.htm pages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

