GO ILLINI
03-05-2007, 03:15 AM
I have an array that is all the files in a directory.
<?php
$dir = "../images/galleries/";
$dh = opendir($dir);
while (false !== ($filename = readdir($dh))) {
$files[] = $filename;
}
sort($files);
print_r($files);
?>
How would I
-Strip off the . and the .. at the begining
-Make it so that I can turn each one of them into a different link
I used to be great at this stuff, but its been awhile...
Thanks,
Adam
<?php
$dir = "../images/galleries/";
$dh = opendir($dir);
while (false !== ($filename = readdir($dh))) {
$files[] = $filename;
}
sort($files);
print_r($files);
?>
How would I
-Strip off the . and the .. at the begining
-Make it so that I can turn each one of them into a different link
I used to be great at this stuff, but its been awhile...
Thanks,
Adam