utime(); // Benchmarking $ft->define( array( 'header' => "header.html", 'body' => "middle.html", 'footer' => "footer.html" ) ); $ft->assign( array( 'TITLE' => "FastTemplate Demo2", 'HEAD1' => "FastTemplate Page Demo", 'TD1' => "Column 1", 'TD2' => "Column 2", 'TD3' => "Cool Stuff", 'TD4' => 'Cooler Stuff', 'MAILTO' => 'cdi@thewebmasters.net', 'LINK' => 'www.thewebmasters.net/php/', 'LINKNAME' => 'The WebMasters Net' ) ); $ft->parse('HEAD', "header"); $ft->parse('BODY', "body"); $ft->parse('FOOT', "footer"); // $ft->clear(array("HEAD","BODY")); // Uncomment this to see how // the class handles errors $ft->showDebugInfo(2); $ft->FastPrint("HEAD"); $ft->FastPrint("BODY"); $ft->FastPrint("FOOT"); $end = $ft->utime(); $runtime = ($end - $start) * 1000; echo "Completed in $runtime seconds
\n"; exit; ?>