Hi, I am having problems displaying directories. The problem is that only the first part of each directory is listed, because my directories have parentheses in them. The structure of the directories is:
Author (Year) Book
I have many many directories and renaming is impossible. What can I do to fix my code? Here is what I have:
<?php
$dir=opendir('.');
while (($file = readdir($dir)) !== false) {
$dirlist[] = $file;
}
closedir($dir);
sort($dirlist);
while (list($key, $val) = each($dirlist)) {
if ($val != "." && $val != "..") {
echo("$val<br>");
}
}
?>
Thanks,
axion