You are here: Re: Best way of calling multiple classes? « PHP Programming Language « IT news, forums, messages
Re: Best way of calling multiple classes?

Posted by Jerry Stuckle on 08/29/07 02:15

Michael Fesser wrote:
> .oO(Jerry Stuckle)
>
>> __autoload is good - but it requires extra processing over and above a
>> require_once, and pretty much everything has to reside in the same
>> directory.
>
> My __autoload() invokes a special class loader method, which allows to
> store all my classes and interfaces in subdirectories. The class loader
> is able to recursively search through the tree structure if necessary.
> The exact location of each found class is cached in an index file, so
> the overhead for loading a class is quite small.
>
> Micha

Not bad. But it also adds complexity and overhead.

Don't get me wrong - I like __autoload. But I also like to keep things
simple. Make for much easier troubleshooting in six months.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация