Re: loading classes and efficiency
| From: | Dan Anderson | Date: | Thu, 11 Sep 2003 00:44:07 +0000 |
| Subject: | Re: loading classes and efficiency | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162234@lists.php.net to get a copy of this message | ||
> Hi there i was wondering is it more efficient to load class files and
> objects when needed per page or is it ok to include them in my main include
> file ?
require_once()
or
include_once()
The files containing the class files before you need them. They will
only be loaded when needed that way.
-Dan