summaryrefslogtreecommitdiffstats
path: root/languages/php/app_templates/phphello/app.php
blob: c6a62b4f9c87e1524081478788e02d1d9455426f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

%{PHP_TEMPLATE}

printHeader();
echo "<h1>Hello World!</h1>\n";
printFooter();

function printHeader(){
	echo <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta name="description" content="" />
	<meta name="author" content="%{AUTHOR}" />
	<meta name="keywords" content="" />
	<title>%{APPNAME}</title>
</head>
<body>

EOF;
}

function printFooter(){
	echo "</body>\n</html>";
}

?>