Hello All,
I have been having trouble with the asort(). I have read the directions and array stuff but I am still not able to get it to work correctly. Here is the code I am using:
if ($handle = opendir('.'))
{
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != ".." && $file != "index.php")
{
$stripper = preg_replace("/_/"," ","$file");
echo "$stripper\n";
}
}
closedir($handle);
}
I want to sort the $file and I have tried $file[]=$stripper asort($stripper) and there is one directory that is still not in order. Perhaps it is a setting with apache? Because in Windows it does not display the directories out of order. ??? Any help would be appreciated.