SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Oct 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    List only folders and subfolders of a directory for a certain level.

    I am trying to display all folders and sub folders of a directory and recurse through the sub directories also.

    My structure is
    Folder a
    a1
    a11
    a11.txt
    a12
    a2
    a21
    a22
    a22.txt
    a.txt

    Folder b
    b1
    b11
    b11.txt
    b12
    b2
    b21
    b22
    b22.txt
    b.txt


    If I select level 1 only 1 level of hierarchy should be displayed, if i select 0 all the levels will be displayed. But will display only directories. I'm new to PHP. Please help me out!!!

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,496
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    Please post the php code you've got so far


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •