/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?PHP $folder = "myFolderName/"; # Making an array containing the files in the current directory: { $files[] = $file; } #echo the files foreach ($files as $file) { echo "<a href=$folder$file>$file</a>"."<br />"; } ?>