PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Epsilon Alexey   uClassDir   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Main startup and example file
Class: uClassDir
Locate and load PHP classes
Author: By
Last change:
Date: 14 years ago
Size: 1,069 bytes


Class file image Download

 * index.php file of UltimaPHP
 * @package UltimaPHP Core (
 * @author Epsilon 2009/05/23

// Before first run, create directory named "auto" in the root.

$root = dirname(__FILE__);


if ((
$GLOBALS['uconfig']['core']['productionmode']) || (isset($_GET['make']))) {
$x = new uClassDir();
$x->recreate($GLOBALS['uconfig']['core']['classdir'], $GLOBALS['uconfig']['core']['autodir'].'/uclassloaderindex.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();

$b = new TestClass2();
$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.