Question:
List HTML files in a directory?
Albert
2011-12-27 18:05:44 UTC
How do you list (without using a navbar) all HTML files in a directory? And only HTML?

Thanks.
Three answers:
2011-12-27 18:17:35 UTC
Use either the unordered or ordered list tags.



Ron
?
2016-11-12 13:52:22 UTC
you are able to call the function filemtime(filename) to get the time the report changed into very last changed. go by ability of your archives and then you'll style them. decrease than is a few code i take advantage of to style some archives by technique of very last changed date. The archives are named a million.Hypertext Preprocessor, 2.Hypertext Preprocessor, 3.Hypertext Preprocessor... etc (yet 2 may nicely be changed more suitable presently than a million or 3, basically relies upon.) $huge style=a million; at the same time as (file_exists($huge style . ".Hypertext Preprocessor")) { $array["huge style"][$huge style] = $huge style; $array["mod"][$huge style] = date("YmdHis", filemtime($huge style . ".Hypertext Preprocessor")); $huge style += a million; } array_multisort($array["mod"], SORT_NUMERIC, SORT_DESC, $array["huge style"], SORT_NUMERIC, SORT_DESC); [EDIT] to exhibit... foreach ($array["huge style"] as $huge style) { $report = $huge style . ".Hypertext Preprocessor"; ?>
2011-12-27 18:39:49 UTC
Make sense and I might help you out.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...