Autoloading PHP Classes to Reduce CPU Usage - PHP Views : 256
Tagged in : PHP
0 0
Send mail


function __autoload ($class_name)
{
if (!class_exists($class_name, false)) {
$class_file_path = str_replace('_', '/', $class_name) . '.php';
require($class_file_path);
}
}

By gowtham, On - 2010-01-28



    Login to add Comments .