News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Developing a Discussion Forum in PHP with Recursion (Part 3)
May 15, 2006 @ 11:44:01

On DevShed today, they've posted this new tutorial continuing their "recursion in PHP" series - "Developing a Discussion Forum in PHP with Recursion".

After covering in detail how to define recursive method and functions, the question is: what comes next? Luckily, there's vast terrain to explore with reference to using recursion in PHP. As I said in previous articles of this series, recursion can be used in cases where a specific tree structure or a linked list needs to be navigated, in order to display, add, delete or edit its values. It's exactly for that reason that this last article will be focused on building an extensible discussion forum, which precisely uses a tree structure (implemented on a single MySQL database table) for displaying forum messages and adding new posts.

Using what they've taught in the first two parts of the series, they put it to good use, giving you a step-by-step guide to a simple recursive forum. They start with the database structure (always a good thing) and work out from there, creating the "ThreadProcessor" class and fetch functionality to grab the thread's contents. They also include a bit of functionality to create threads as well. It's not much more than that, so don't expect too much, but it is a great place to start.

1 comment voice your opinion now!
recursion forum message board part3 fetch view recursion forum message board part3 fetch view


blog comments powered by Disqus

Similar Posts

Stefan Mischook's Blog: What Makes a PHP Web Application?

Mfana Ronald Conco's Blog: RabbitMQ and PHP Part 2 - Durable Queues and Persistent Messages

DevShed: A Basic Monitoring Engine in PHP

Paul Jones' Blog: Solar Views and Layouts

Matthew Weier O'Phinney's Blog: View Layers, Database Abstraction, Configuration, Oh, My!


Community Events





Don't see your event here?
Let us know!


series laravel interview composer security release introduction library version podcast voicesoftheelephpant artisanfiles framework community opinion tool language symfony list conference

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework