i'm currently learning php. i'm making a file for a friend instead of using the page that comes up when theres no index file in a folder.
i want the directories to come up first and then the files.
heres the essence of the code:
//$entry is the filename
while($entry = $dir->read()) {
if(($entry == ".") || ($entry == "..")) {
continue;
}
if (!strpos($entry, ".")){
//then it is a directory
}else{
//then file
}
echo "<BR>";
}
you can see the output here: http://www.smuserver.net/c79studios