[Q] PHP code embedded in html files - What happens?

From: Date: Mon, 15 Mar 2004 02:01:56 +0000
Subject: [Q] PHP code embedded in html files - What happens?
Groups: php.general 
Request: Send a blank email to php-general+get-180403@lists.php.net to get a copy of this message
When the following file, tmp.htm, is executed no output is produced. <html> <head> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <?php echo '<p>hello world</p>'; ?> </body> </html> However, when the name of the file is changed to tmp.php the expected output, 'hello world', is obtained. Is this the correct behavior? More specifically, is the php script not executed? Cheers, Michael

« previous php.general (#180403) next »