gibbo1715 Posted November 8, 2009 Share Posted November 8, 2009 All Im new to php but am keen to learn What i want to do is the same as an image gallery but using htm files I have figured out from looking on the web how to display my files with a link to them as follows <?php $handle = opendir('.'); while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo "<a href=\"$file\">$file</a><br>"; } } closedir($handle); ?> Can anyone point me to something that shows me how to display the actual html page with prev next buttons and show the contents of my dir one htm page at a time thanks gibbo Link to comment https://forums.phpfreaks.com/topic/180754-loop-through-a-folder-containing-htm-files/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.