Originally Posted by nevermore93
The script counts the number of files and all sub-folders recursively and gives a count for each.
It counts only sub-folders and files in it's parent directory and does not read the root folder. For example, if placed in "public_html" it will give output for all files and folders in that directory. If you put it in "public_html/myfolder/" it will only give results for "myfolder".
Thanks nevermore93 . Clear to me how your PHP script works.