I am trying to display all folders and sub folders of a directory and recurse through the sub directories also.
My structure is
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!!!
Please post the php code you've got so far