09-17-2007, 09:51 PM
|
#2 (permalink)
|
|
The Prestige
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
|
PHP Code:
<?php function __autoload($class_name) { require_once $class_name . '.php'; }
$obj = new MyClass1(); $obj2 = new MyClass2(); ?>
This script attempts to create an object from the files MyClass1.php and MyClass2.php
Found here: http://se2.php.net/autoload
EDIT: Opps, that was for swe... well w.e you get the point..
|
|
|
|