[PHP] Listing Files in a Folder with glob, scandir, and readdir
Sometimes you need to write a PHP program that gets a list of the files in a specified folder. For example, I needed this feature when I was making an online hard drive program. Here I’ll introduce three functions that can all do this, though each is used a bit differently: glob, scandir, and readdir. ...