PHP opendir() to list folders only

后端 未结 6 1133
日久生厌
日久生厌 2020-12-14 18:58

I would like to use opendir() to list only the folders in a particular folder (i.e. /www/site/). I would like to exclude files from the list as well at the \'.\' and \'..\'

6条回答
  •  醉梦人生
    2020-12-14 19:31

    Can also be used in forms to create a Dropdown of Folder names (here it is the images folder). Ensures that a user uploading an image pushes it to the correct folder :-)

    
    

提交回复
热议问题