<?php
 
 
/**
 
 * index.php file of UltimaPHP
 
 *
 
 * @package UltimaPHP Core (http://ultimaphp.ru)
 
 * @author Epsilon 2009/05/23
 
 */
 
 
// Before first run, create directory named "auto" in the root.
 
 
$root = dirname(__FILE__);
 
 
require_once($root.'/config.php');
 
 
if (($GLOBALS['uconfig']['core']['productionmode']) || (isset($_GET['make']))) {
 
    require_once($root.'/core/uclassdir.class');
 
    $x = new uClassDir();
 
    $x->recreate($GLOBALS['uconfig']['core']['classdir'], $GLOBALS['uconfig']['core']['autodir'].'/uclassloaderindex.class');
 
}
 
 
require_once($root.'/core/ukernel.class');
 
 
 
//.............. Your code down here ................
 
//
 
 
// Simple test. Just kill it later. Notice: no need "require's", "include's" after this point.
 
 
header("Content-type: text/plain");
 
 
$a = new TestClass1();
 
echo $a->getValue()."\n";
 
 
$b = new TestClass2();
 
echo $b->multiplyByValue(45, 7)."\n";
 
 
/**
 
 * Never close php files with "?>".
 
 * It will protect you from unexpected space/TAB/CR chars before <HTML> tag or dynamic image data. 
 
 */
 
 
 
 |