Beispiel:
function autoload( $className ) { if( $className == "xajax" ) include_once( $_SERVER['DOCUMENT_ROOT'] . "/xajax_06/xajax_core/xajax.inc.php" ); else include_once( $_SERVER['DOCUMENT_ROOT'] . "/class/class." . $className . ".php" ); } spl_autoload_register( 'autoload' );