How do I NOT autoload a class in php?
问题 the autoloader at the beginning of my php code function __autoload($class_name) { include_once $class_name . '.class.php'; } is causing a call to new MongoClient(); to fail with the error Warning: include_once(MongoClient.class.php): failed to open stream How can I use the autoloader for my classes and still use the standard classes? Note: MongoDb has been installed with PECL and works fine with the autoloading function removed. mongo-1.3.0beta2 on php 5.4.9 回答1: __autoload() , if defined, is