PHP Classes
elePHPant
Icontem

File: examples/example1.php

Recommend this page to a friend!
  Classes of Barton Phillips  >  PHP Site Class  >  examples/example1.php  >  Download  
File: examples/example1.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Site Class
Create database driven Web sites
Author: By
Last change:
Date: 4 months ago
Size: 340 bytes
 

Contents

Class file image Download
<?php
// example1.php

require_once("../../../autoload.php");

$siteinfo = array(
 
'siteDomain' => "localhost",
 
'siteName' => "Example1",
 
'copyright' => "2016 Barton L. Phillips",
);

$S = new SiteClass($siteinfo);

list(
$top, $footer) = $S->getPageTopBottom();
echo <<<EOF
$top
<h1>Example 1</h1>
<p>Hello World</p>
<hr>
$footer
EOF;