Hello all,
Recently I had some problems with include/include_once.
This is the scenario:
My application uses only classes loaded through a centered __autoload()
function (no require/include anywere in the scripts, but in __autoload()
itself).
Now, diverse libraries use diverse extensions. For
On Tue, Nov 15, 2005 at 10:48:56PM +, Thiago Silva wrote:
...
So, __autload has to *try* include_once's. Something like that:
function __autoload($className) {
include_once(${className}.php);
if(class_exists($className, false)) return;
include_once(${className}.class.php);
2 matches
Mail list logo