For more information about folder traversal, see php. how can I traverse detailed information about files in a folder, such as the file name, last modification time, and file size ~~ ------ Solution ------------------ here you output the file name echo & nbsp; & lt; a & nbsp; hrefupload. $ Fo For more information about folder traversal
Php-written traversal of folder programs, how can I traverse detailed information about files in a folder, such as the file name, last modification time, and file size ~~
------ Solution --------------------
You output the file name here.
Echo "{$ FolderOrFile}
";
You can also output other information about the file.
$ Fn = "$ dir/$ FolderOrFile ";
Echo filesize ($ fn); // file size
Echo date ('Y-m-d H: I: S', filecime ($ fn); // creation time
Echo date ('Y-m-d H: I: S', filemtime ($ fn); // last modification time