Location: PHPKode > scripts > fen2Diagram > fen2diagram/example.php
<?php
/**
 * @author Can Ince <hide@address.com>
 * @copyright copyright @ 2007 by Can Ince
 * @license GNU/LGPL
 * @version 0.0.1
 * @package fen2Diagram
 */
require_once("fen2Diagram.class.php");
$fen2Diagram=new fen2Diagram();
$fen2Diagram->fen="rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
$fen2Diagram->outputImageType="png"; //not obligatory. you may remove or comment this line for the default jpeg output.
$fen2Diagram->printDiagram();
?> 
Return current item: fen2Diagram