.php extensions versus .html

From: Date: Fri, 31 Jan 2003 06:46:53 +0000
Subject: .php extensions versus .html
Groups: php.general 
Request: Send a blank email to php-general+get-133742@lists.php.net to get a copy of this message
I was wondering, can you call a php script in the middle of a html page? I've seen some sites use code like this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled</title> </head> <body> HELLO WORLD!!! <P> <!--#include file="helloworld2.php" --> </body> </html> but when I try it, the php script doesn't run. Does anyone else know how to use php on a page and yet keep the .html extension? Thanks in advance, Roger

« previous php.general (#133742) next »