note 20926 deleted from ref.classobj by victor
| From: | victor@php.net | Date: | Fri, 19 Aug 2005 19:46:55 +0000 |
| Subject: | note 20926 deleted from ref.classobj by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93918@lists.php.net to get a copy of this message | ||
Note Submitter: c.bolten AT grafiknews DOT de
----
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