Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 429059a7e05334a56e1df397aa180f09 > files > 5

php-pear-HTML_Page-2.0.0-15.mga4.noarch.rpm

<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | PHP Version 4                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997 - 2003 The PHP Group                              |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available at through the world-wide-web at                           |
// | http://www.php.net/license/3_0.txt.                                  |
// | If you did not receive a copy of the PHP license and are unable to   |
// | obtain it through the world-wide-web, please send a note to          |
// | license@php.net so we can mail you a copy immediately.               |
// +----------------------------------------------------------------------+
// | Author: Klaus Guenther <klaus@capitalfocus.org>                      |
// +----------------------------------------------------------------------+
//
// $Id: Page_Simple.php,v 1.3 2003/07/13 00:18:45 thesaur Exp $

require_once 'HTML/Page.php';

// With no initial settings, the following defaults are set:
//    -> lineends = unix (\12)
//    -> doctype = XHTML 1.0 Transitional
//                 (if set to "none", doctype and language are not set)
//    -> language = en
//    -> cache = false

$p = new HTML_Page();
 
// Page title defaults to "New XHTML 1.0 Page"

$p->addBodyContent('<h1>Headline</h1>');
$p->addBodyContent('<p>Copyright 2003 The PHP Group</p>');
$p->display();
?>