RE: [PHP] loading classes and efficiency

From: Date: Fri, 12 Sep 2003 03:01:12 +0000
Subject: RE: [PHP] loading classes and efficiency
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-162376@lists.php.net to get a copy of this message
> woah u kiddin me ? i'm sure i edited a function in a functions file which > wasnt executed and it still got parsed (spat out errors) Well connecting to a database, etc. does take overhead above and beyond a function. So yes, it does save resources to include it. And I am not completely sure of the way PHP handles things internally, but I have noticed that functions don't cause PHP to yelp and moan unless they are called (for some errors). Plus if a function uses several kb of memory include_once or require_once() ing them /will/ save resources on a server. -Dan

« previous php.general (#162376) next »