note 20926 added to ref.classobj

From: Date: Mon, 22 Apr 2002 10:14:09 +0000
Subject: note 20926 added to ref.classobj
Groups: php.notes 
Request: Send a blank email to php-notes+get-29672@lists.php.net to get a copy of this message
another way to dynamically load your classes: ========================== function loadlib($libname) { $filename = "inc/".$libname.".inc.php"; // check if file exists... if (file_exists($filename)) { // load library require($filename); return TRUE; } else { // print error! die ("Could not load library $libname.\n"); } } :) have phun! -cornelius -- http://www.php.net/manual/en/ref.classobj.php http://master.php.net/manage/user-notes.php?action=edit+20926 http://master.php.net/manage/user-notes.php?action=delete+20926 http://master.php.net/manage/user-notes.php?action=reject+20926

« previous php.notes (#29672) next »