how would i display all the files with a .html extension in a certain folder without making an array or anything like that, just a list of every html file in that folder
[code=php]<?PHP $folder = "/root/path/to/currentdirectory/"; $handle = opendir($folder); while ($file = readdir($handle)) { if (preg_match("/.htm(l)?$/", $file)) { echo "<a href="$file">$file</a><br>"; } } closedir($handle); ?>[/code]
Help @cloudx575 spread the word by sharing this article on Twitter...