Reading directory tree and save to XML

Discussion in 'PHP' started by 2mk_atspace, Nov 14, 2006.

  1. #1
    I want to male web application , which can read directory tree and save it in XML File, after that the directory tree can be display in the web. It,s like Windows Explorer, but in web base.

    I have already searching but none that using PHP.

    Example : http://www.codeproject.com/vb/net/dirsinc.asp
     
    2mk_atspace, Nov 14, 2006 IP
  2. Madcow

    Madcow Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello;

    Firstly you need to get your directories;

    don't forget php online manual is your best friend using php so take a look at :
    http: //tr2.php.net/opendir

    for listing.
    than you need to make that listing an array and write to xml ...

    while writing to xml this link should help you :
    http: //simon.incutio.com/archive/2003/04/29/xmlWriter

    if you have any further questions about this topic please feel free to ask .

    Also this is my first post in this forums so i want to say a big "HELLO" to all .

    Cya
    Irmak
     
    Madcow, Nov 14, 2006 IP
  3. Madcow

    Madcow Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    PS: Sorry for link forum says that is not available for me yet :( . also thx the forum mods for understanding :)
     
    Madcow, Nov 14, 2006 IP