View Single Post
Old 12-20-2007, 04:11 AM   #9 (permalink)
Village Idiot
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Something like this
PHP Code:
 <?php  

$dir 
dir$d ); 
  while( 
false !== ( $entry $dir->read() ) ) { 
if(
$entry!='.' && $entry!='..' && $entry!='index.php' && $entry!='error_log') { 



$arr[] = $entry;

 } 


sort($arr); //making your own bubble sort method will be faster, but I cant find mine
foreach($arr as $val)
{
echo 
$val;
}


      

?>
__________________

Village Idiot is offline  
Reply With Quote
The Following User Says Thank You to Village Idiot For This Useful Post:
Orc (12-20-2007)