You are here: Re: building an array of files « PHP Programming Language « IT news, forums, messages
Re: building an array of files

Posted by CptDondo on 03/26/07 20:12

ZeldorBlat wrote:

> Instead of processing your files level by level, why not do it
> recursively? For instance, when your parse index.php, instead of
> adding clients.php, then inventory.php, and then going back and
> checking for their includes, add clients.php and check for his
> includes. When that's done, add inventory.php and check for his
> includes. That way you never need to insert the new array in the
> middle of the parent -- it'll just happen in the right order the first
> time.
>

Or store the info as XML and use XPath.... The first bit of work would
be harder, but then all the lookups and stuff would be there for you.

And you really don't have to care where the stuff is in the tree - just
look it up every time and add child nodes.

--Yan

 

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

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