Re: Includes only if required?

From: Date: Mon, 02 Feb 2009 13:16:22 +0000
Subject: Re: Includes only if required?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-287531@lists.php.net to get a copy of this message
On Mon, Feb 2, 2009 at 6:42 AM, Edmund Hertle <farnion@googlemail.com> wrote: > Hey, > normally I prefer to do all my includes (classes + config files) at the > beginning if my php files. But recently I thought about including some > classes only if they are needed later in my code (like pear Mail and > Mail_mime only if an e-mail is about to be sent) because of speed issues. So > my question: Is this something I should consider? Or is it something I > normally will not notice? > > -eddy > Look at spl_autoload_register. -- http://www.voom.me | EFnet: #voom

« previous php.general (#287531) next »