Re: conditionaly including classes/functions

From: Date: Fri, 05 Apr 2002 16:38:35 +0000
Subject: Re: conditionaly including classes/functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91741@lists.php.net to get a copy of this message
On Thursday, April 4, 2002, at 12:28 PM, Andrew Warner wrote:
Is it okay practice to condtionally include php files that contain only classes or functions (as opposed to just straight code)? The result is a class or function inserted right in the middle of an if{} block:
It is better to do so, since you don't waste the processor's time with the function/class or include() process if you don't really need it. However, it can be tricky making sure that these libraries are available to your code, since there is now a condition determining whether or not it will be processed. Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com

« previous php.general (#91741) next »