A basic question

From: Date: Sun, 27 Nov 2005 18:46:56 +0000
Subject: A basic question
Groups: php.general 
Request: Send a blank email to php-general+get-226517@lists.php.net to get a copy of this message
Hi, I am new to php scripting and would like to ask you a basic question. Could you kindly explain to me why "time.php" works but "time.html" does not? pine time.php ------------------------------------------------------ <?php $serverdate = date("l, d F Y h:i a"); print ("$serverdate"); print (" &nbsp; <p>"); ?> --------------------------------------------------------- time.html --------------------------------------------------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Local Time</title> <meta name="GENERATOR" content="Text Editor"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <p>This is a test.</p> <?php $serverdate = date("l, d F Y h:i a"); print ("$serverdate"); print (" &nbsp; <br>"); ?> <p></p><p>This is the end.</p> </body> </html> -------------------------------------------------------------------

« previous php.general (#226517) next »