Location: PHPKode > scripts > NiftyCube > niftycube/niftycubed.ob_example.php
<?php
//Include the file and create an object
require("niftycubed.class.php");
$niftycubeelement = new NiftyCube();

//Start Output Buffering
ob_start(array( &$niftycubeelement , "obShow"));

//Configure various stuff
$niftycubeelement->configureBorder('27', '336699', 'big');
$niftycubeelement->setColors('FF0000', 'FFFFFF');
$niftycubeelement->setPage('80%', '3%');

//Of course our page has a title
$niftycubeelement->setTitle('The Insanely Popular Rounded Webpage! - Now with OB!');

//What comes below is simply to get something to output
for ($i = 0; $i < 70; $i++)
{
	for ($o = 0; $o < 90; $o++)
	{
		echo (($o+$i) < 32 ? chr($o+$i+32) : chr($o+$i));
		if ($o%6 == 0)
		{
			echo ' ';
		}
	}
	echo '<br />';
}

?>
Return current item: NiftyCube