Mistake: Autoloading Objects

From: Date: Mon, 18 Oct 2004 01:53:06 +0000
Subject: Mistake: Autoloading Objects
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969364568@lists.php.net to get a copy of this message
Hi guys, In the Autoloading Objects Section of your documentation I believe you have a small error in the example you gave, the example is: <?php function __autoload($class_name) { include_once($class_name . 'php'); } $obj = new MyClass1(); $obj2 = new MyClass2(); ?> In the third line of this example I believe there should be a "." Before the php i.e. include_once($class_name . '.php'); if I am incorrect about this sorry for taking your time cheers Kishan

« previous php.doc (#969364568) next »