PHP Displays the directory under the specified directory, PHP specifies the directory
The examples in this article describe how PHP displays directories under the specified directory. Share to everyone for your reference. The implementation method is as follows:
<?phpecho "Subdirs in Dir
"; $basedir = basename (__file__); $dirtoscan = ($basedir. ') /somedir/'), $albumlisting = Scandir ($dirtoscan), foreach ($albumlisting as $item) { $dirinfo = PathInfo ($item); Print_r ($dirinfo); if (Is_dir ("$item")) { echo]
- $item
"; }}? >
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/970985.html www.bkjia.com true http://www.bkjia.com/PHPjc/970985.html techarticle PHP Displays the specified directory under the subdirectory of the method, PHP designated directory This article describes the PHP display of the directory of the specified directory method. Share to everyone for your reference. The concrete implementation method is as follows ...