00001 <?php
00017 function display_pure_php_page()
00018 {
00019
00020 echo "<!--We can output HTML comments using pure PHP -->\n";
00021 echo "<html>\n";
00022 echo "\t<head>\n";
00023 echo "\t\t<title>Pure PHP page</title>\n";
00024 echo "\t</head>\n";
00025 echo "\t<body>\n";
00026 echo "\t\t<h3>Mixing PHP and HTML</h3>\n";
00027 echo "\t\t<ul>\n";
00028 echo "\t\t\t<li><a href='index.php'>Pure HTML type PHP</a></li>\n";
00029 echo "\t\t\t<li><a href='01-pure_php.php'>Pure PHP</a></li>\n";
00030 echo "\t\t\t<li><a href='02-mixed_html_and_php.php'>Mixed HTML and PHP</a></li>\n";
00031 echo "\t\t</ul>\n";
00032 echo "\t\tThis page was generated on " . date('d F Y') . ' at ' . date('h:i:s a') . "\n";
00033 echo "\t</body>\n";
00034 echo "</html>\n";
00035 }
00036
00037 display_pure_php_page();
00038
00039 ?>