How to display a directory of folders and subfolders of a web system

0

I am developing a project where you can see a directory by breaking down Folders, Subfolders and Files.

I'm really something green in this php, and I did not find any examples of how to show it

I hope you can give me some example or guidance

    
asked by Sharly Infinitywars 14.06.2017 в 20:57
source

1 answer

2

Assuming that the directory is on the machine that runs the PHP script, you can use the scandir function .

array scandir ( string $directory [, int $sorting_order = SCANDIR_SORT_ASCENDING [, resource $context ]] )
    
answered by 14.06.2017 в 20:59