11-21-2011, 09:32 AM
|
#29 (permalink)
|
|
The Visitor
Join Date: Nov 2011
Posts: 3
Thanks: 0
|
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]...
|
|
|
|