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
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
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 ]] )