--- nfo/php/libs/com.newsblob.phphtmllib/examples/example1.php 2003/01/30 03:29:43 1.1.1.1 +++ nfo/php/libs/com.newsblob.phphtmllib/examples/example1.php 2004/05/06 16:27:17 1.4 @@ -6,7 +6,7 @@ * page. * * - * $Id: example1.php,v 1.1.1.1 2003/01/30 03:29:43 jonen Exp $ + * $Id: example1.php,v 1.4 2004/05/06 16:27:17 jonen Exp $ * * @author Walter A. Boring IV * @package phpHtmlLib @@ -21,8 +21,7 @@ * inlude_once("includes.inc"); which contains * the following 2 lines */ -//$phphtmllib = $_SERVER["DOCUMENT_ROOT"] . "/phphtmllib"; -$phphtmllib = "/home/max/dev/netfrag.org/nfo/php/libs/com.newsblob.phphtmllib"; +$phphtmllib = $_SERVER["DOCUMENT_ROOT"] . "/phphtmllib"; include_once("$phphtmllib/includes.inc"); @@ -46,7 +45,10 @@ //if you want phphtmllib to render the //output as viewable source code //then add ?debug=1 to the query string to this script -$page->set_text_debug( $_GET["debug"] ); +if (isset($_GET['debug'])) { + $page->set_text_debug( TRUE ); +} + //add the obligitory hello world