Jeff182
05-10-2003, 11:26 PM
What I want to do is use this simple code
<?php
if ($dir = @opendir("./"))
{
while (($file = readdir($dir)) !== false) {
if ($file == '..' || $file=='.' || $file == '.htaccess' || $file == 'index.php') {
echo '';
} else {
echo "<a href=\"$file\" target=\"_blank\">$file</a><br>\n";
}
}
closedir($dir);
}
?>
That will list a directory but I want the files in the directory to be displayed 10 files per page and I want the links automatically to genarate at the bottom of the page, could anyone help me out?
<?php
if ($dir = @opendir("./"))
{
while (($file = readdir($dir)) !== false) {
if ($file == '..' || $file=='.' || $file == '.htaccess' || $file == 'index.php') {
echo '';
} else {
echo "<a href=\"$file\" target=\"_blank\">$file</a><br>\n";
}
}
closedir($dir);
}
?>
That will list a directory but I want the files in the directory to be displayed 10 files per page and I want the links automatically to genarate at the bottom of the page, could anyone help me out?
