RE: [PHP] loading classes and efficiency

From: Date: Fri, 12 Sep 2003 00:03:27 +0000
Subject: RE: [PHP] loading classes and efficiency
Groups: php.general 
Request: Send a blank email to php-general+get-162349@lists.php.net to get a copy of this message
Dan Anderson <mailto:dan@mathjunkies.com> on Wednesday, September 10, 2003 5:44 PM said: > require_once() or include_once() > > The files containing the class files before you need them. They will > only be loaded when needed that way. Not true. www.php.net/require_once The way I understand it (maybe you know something I don't?) require/include_once only prevent an included file from being included MORE than one time, hence the character string _once tacked onto the end of include() and require(). It does NOT however include a file only when it's needed, it merely includes it once. Please correct me if I'm wrong. Chris.

« previous php.general (#162349) next »