Hey Guys, PHP manual suggests to autoload classes like
function __autoload($class_name){
require_once("some_dir/".$class_name.".php");
}
ve bu appoach gibi dosya my_dir / FooClass.php kaydedilen sınıf FooClass yüklemeye çalışıyor
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.