List all folders on my computer (php)

前端 未结 5 2194
一向
一向 2021-01-27 16:59

I want to browse all folders on my computer without using opendir(), in PHP.

5条回答
  •  旧巷少年郎
    2021-01-27 17:54

    The result will be a very ugly combination of glob() and stat(). Is there some reason you can't work with opendir() and friends?

    Edit:

    If PHP does not have suitable permissions to access everything you want to see, using another function is not going to help.

    What (exactly) are you trying to do?

提交回复
热议问题