View Single Post
Old 11-21-2011, 09:32 AM   #29 (permalink)
Nicklaus
The Visitor
 
Nicklaus's Avatar
 
Join Date: Nov 2011
Posts: 3
Thanks: 0
Nicklaus is on a distinguished road
Default

I am trying to make a simple site map - from a directory full of files.. but I have too many files in the folder, I need pagination.. I have no idea how to do this without MySQL.

PHP Code:
<?php
$filearray = array(); if ($fil = opendir("directory/")) {
while (($file = readdir($fil)) !== false) {
if ($file != "." && $file != "..") { $filearray[] = $file;
echo "<a href="http://www.mydomain.com/directory/$file">http://www.mydomain.com/directory/$file</a><br>";
[code]...
Nicklaus is offline  
Reply With Quote