PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am using autoload() to automatically include class.
What happens when I am using external class (from PEAR) for example.
Should hardcode in autoload() external class that I use and the it should load them?
P.S. Actually I cannot hardcode extgerna class...as this class might call other stuff
What should I do
function __autoload($class_name) {
require_once CLASS_PATH.$class_name . '.php';
}
and now I just included CLASS_PATH to include path and did it as you mention. (PEAR style....replacing "_" with "/")
So that external classes run as well