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


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to