Re: Re: some kind of "library loader"

From: Date: Wed, 03 Apr 2002 18:33:25 +0000
Subject: Re: Re: some kind of "library loader"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91354@lists.php.net to get a copy of this message
On Thu, 4 Apr 2002, Maxim Maletsky wrote: > You can try to load all those classes as texts into a db and then to execute > the needed ones as eval()ed strings. It could be easy for you to create the > logic because the PHP code are stings and are never included but SELECTed. > Not sure if this could be wise to do, just throwing out an idea. Offhand I'm guessing the payoff wouldn't be great, because you'd lose the benefit of PHP's own code caching. Depends on how much of this voluminous code actually gets used on any one run, I suppose. But why not do the same thing with conditional includes, and then at least let PHP cache it? miguel

« previous php.general (#91354) next »