showDate.php
Source of showDate.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="EN" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/xml; charset=utf-8" />
<title>showDate.php</title>
</head>
<body>
<h1>Getting the Time, PHP Style</h1>
<?php
print "<h2>Date: ";
print date("m-d");
print "</h2> \n";
print " <h2>Time: ";
print date("h:i");
print "</h2>";
?>
</body>
</html>