12-20-2007, 04:41 AM
|
#10 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
Quote:
Originally Posted by Village Idiot
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; }
?>
|
Okay I just tried that and I got
Code:
Parse error: syntax error, unexpected ')' in index.php on line 47
|
|
|
|