<?php
function list_files($dir){
if(is_dir($dir)){
if($handle = opendir($dir)){
while(($file = readdir($handle)) !== false){
if($file != "." && $file != ".." && $file != "Thumbs.db"){
echo '<a target="_blank" href="'.$dir.$file.'">'.$file.'</a><br>'."\n";
}
}
closedir($handle);
}
}
}
$path = $_SERVER["APPL_PHYSICAL_PATH"];
list_files("".$path."/");
?>
and it displays my files in my account's folder.. (i mean that main folder.. public_html for example)
but it displays in alphabetic order but i want it to be.. folders first.. and then files :/
maybe someone knows how to do it.. :/


Sign In
Create Account

Guest_Jaan_*
Back to top










