Is there a way to create an index page (with customisable layout) that automaticaly lists the files contained in the same folder? The index page will update itself everytime a file is copied into the folder.
[code=php] <?php $files = glob("*"); echo "<ul>n"; foreach($files as $file) { if($file != '.' and $file != '..') { echo "<li>$file</li>n"; } } echo "</ul>n"; ?> [/code]
[code=php] echo "<li><a href='$file'>$file</a></li>n"; [/code]
Help @hitman spread the word by sharing this article on Twitter...