Re: [PHP] Loading all clases always

2005-01-22 Thread Matthew Weier O'Phinney
* Chris <[EMAIL PROTECTED]>: > You may want to look at the PHP 5 __autoload function: > > http://www.php.net/oop5.autoload These are semi-available in PHP4 as well -- look up 'overload' in the function reference. > I know it's not the answer to your question, but it could be just as > good, or b

Re: [PHP] Loading all clases always

2005-01-22 Thread Chris
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 thinki

[PHP] Loading all clases always

2005-01-22 Thread Ben Edwards (lists)
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