Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 31st, 2005, 07:16 AM
Friend of Wrox
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default Create +/- hiearchy using PHP?

How could I create +/- hiearchy in PHP? I mean a tree structure of links ( eg., Web directory struture ) as we see for RSS/XML feed pages ( I'm not asking about RSS or XML ).

PHP, SEO | anshul shrivastava | mediasworks.org | FB
Old June 20th, 2005, 04:29 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts

Well, you *can* do this in PHP, but it would require a LOT of traffic between client and server. It's probably better to do this all in JavaScript, since clicking on a [+] or [-] won't result in a new request of the server.

Take care,

Old June 20th, 2005, 04:43 PM
richard.york's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts

Yeah I'd do it with PHP, and AJAX on the client-side (Google "Javascript HttpRequest"). That'll keep your traffic low bandwidth, your overall application small and speedy, and you won't have to reload the page for every click of (+) or (-), since JavaScript HttpRequest can talk to the server and retrieve new data in the background.


Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create SiteMapPath in PHP? firblazer PHP How-To 0 July 14th, 2008 09:33 PM
how can i create file using php seco PHP How-To 1 April 11th, 2007 05:58 PM
Create pdf file using PHP angshujit PHP How-To 1 February 24th, 2007 10:07 AM
PHP Create Database problem sweyhrich Beginning PHP 9 January 29th, 2007 06:39 AM
how to create an email id through php script manu_mcs Pro PHP 0 December 8th, 2003 03:33 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.