\n";
}
}
# return dirs sorted
class SortDir {
var $items;
function SortDir($directory) {
$handle=@opendir($directory);
if (!$handle) return;
while ($file = readdir($handle)) {
if ($file != "." && $file != "..") {
$this->items[]=$file;
}
}
closedir($handle);
if ($this->items) {
natsort($this->items);
}
}
function Read() {
if ($this->items) {
$getback= (pos($this->items));
next($this->items);
return $getback;
}
}
}
?>