note 15925 deleted from function.class-exists by derick

From: Date: Wed, 06 Aug 2008 11:03:57 +0000
Subject: note 15925 deleted from function.class-exists by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-143205@lists.php.net to get a copy of this message
Note Submitter: spamless_blair at nb dot net ---- I have a script that includes various class libraries depending on what is contained in the constant _INCLUDE_LIST which is a comma-delimited string. define('_INCLUDE_LIST', 'CORE, LIB_DATA, LIB_EMAIL'); I use class_exists() to determine if a class definition has been included before creating an instance of it. if(class_exists('CMySQLConnection')) $oData = new CMySQLConnection; Hope it is helpful for someone! -Jason Garber IonZoft.com

« previous php.notes (#143205) next »