So, you're trying to get things organized, and you want to get your loyal friend, PHP, to help out. You want to write something that will let you have a "tree" of information that you can view and search easily and keep up-to-date with your information. Well, unless you're a master of recursion, then this latest article from Zend just might be for you.
In Creating and Maintaining a Hierarchical Directory, they show you how to use MySQL and PHP to create a recursive tree application that will allow you not only to keep organized, but helps you do full-text searching on the MySQL (if you haven't used this yet, you're living on the dark ages. Go. Try it now.) All of the code and database structure is laid out for you, so you only have to customize it to what you need.
It's pretty funny that an article like this should happen to come along when it did - I just finished a project using these exact same things. Now, if only they had posted it a few days sooner...




