00001 <?php 00020 // 1. require once the code to diagram core 00021 require_once( '../../public/codetodiagram.php' ); 00022 00023 // 2. start the code to diagram 00024 CodeToDiagram::getInstance()->start(); 00025 CodeToDiagram::getInstance()->setPrinterType( CodeToDiagram::PRINTER_TYPE_XML ); 00026 // 3. require once the necessary classes 00027 require_once( "Fatorial.php" ); 00028 00029 // 4. start the class service 00030 Fatorial::play(3); 00031 00032 ?>
1.5.9