18May/09Off

how to register autoload function php

require_once  'autoloader.func.php';

autoloader.func.php ->

function __autoload($class_name)

{

$load = include_once ('pathtoyourclassesdirectory'. $class_name . '.class.php');

return true;

}

or

use spl_autoload_register("class_autoloader")  but  this is slow.

Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

No trackbacks yet.