Re: Loading all clases always

From: Date: Sat, 22 Jan 2005 23:22:08 +0000
Subject: Re: Loading all clases always
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-207051@lists.php.net to get a copy of this message
You may want to look at the PHP 5 __autoload function: http://www.php.net/oop5.autoload I know it's not the answer to your question, but it could be just as good, or better, than what you were looking for. Chris Ben Edwards (lists) wrote:
I have all my classes in a single directory. I was thinking of automatically loading them all at the beginning of every page. The logic being that the class definitions will get cached (I guess PHP uses filesize/date/time) so the overhead would not be that great. Also at any given time they will all probably be needed by one of the visitors. Ben


« previous php.general (#207051) next »