Hey Guys, PHP manual suggests to autoload classes like
function __autoload($class_name){
require_once("some_dir/".$class_name.".php");
}
and this appoach works fine to load class FooClass saved in the file my_dir/FooClass.php like
class FooClass{
//some implementation
}
here is my question: how can I make it possible to use _autoload() function and access FooClass saved in the file my_dir/foo_class.php? thanks for your help.
[Note: 1. the CamelCase and under_score notations on the files 2. the manual link is : http://www.php.net/manual/en/language.oop5.autoload.php%5D.