On Wed, 2003-09-10 at 17:58, [EMAIL PROTECTED] wrote:
> Hi there i was wondering is it more efficient to load class files and
> objects when needed per page or is it ok to include them in my main include
> file ?

It might be fine. If the class files are not that large, there might not
be much difference in performance.

If you use a consistent naming convention for your class files, you
could have a function that will handle including the class file and
return an object. So you could do something like:

$foo_object = CreateObject('FooObject');

- Brad

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

Reply via email to