Re: Includes only if required?
| From: | Richard Heyes | Date: | Mon, 02 Feb 2009 12:16:13 +0000 |
| Subject: | Re: Includes only if required? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287526@lists.php.net to get a copy of this message | ||
Hi,
> Mail_mime
Ooh...
> 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?
Depends on the load on your server. If you're getting a billion
requests per second, then it may well be cause for concern. Either way
you can define a function called "__autoload" that gets called when a
class is about to be instantiated. This function can then load the
correct library. On demand as it were.
http://uk2.php.net/__autoload
--
Richard Heyes
HTML5 Graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.org (Updated January 31st)