How to traverse all files in a directory?
Get their file names.
Requires compatibility with Win and Linux systems
You need to write a recursive function, and then you can get it done
Use dirname(__FILE__) to get the upper-level directory of the current file, and then scandir()
You need to write a recursive function, and then you can get it done
Use dirname(__FILE__) to get the upper-level directory of the current file, and then scandir()