First create the object Navigator(string Dir[,char Sortby [,string Direction]])

$browser = new Navigator("xxxxxx");
or
$browser = new Navigator("xxxxxx","y");
or
$browser = new Navigator("xxxxxx","y","z");

where :
"xxxxxx" is the directory to browse
"y" is field to sort, it can be N:by name / S:by size / D: by date
"z" is direction sort, it can be ASC:ascending /DESC: descending
Note: "y" and "z" are optional.

To browse directories $obj->NextDir() and files $obj->NextDir()
each occurence has:

$obj->FieldName: The file's name
$obj->FieldDate: Last Modified
$obj->FieldSize: File size
$obj->FieldPerms: Permession attributes (for unix)
$obj->FieldOwner: file owner (for unix)
$obj->FieldGroup: (for unix)

Functions available:

$browser->Pwd() : retrun current directory
$browser->ChgPerms(string file,char(8) perms) : change perm's file
$browser->GetDirSize(string dir) : retrun directory size
$browser->Rename( string file_to_rename, string new_name) :rename file or dir
$browser->Create(char(1) what , string name) : create file (what=f) or dir (what=d)
$browser->Remove(string file_to_delete)
$browser->RemoveDir(string dir_to_delete)
$browser->ConvertSize(int size) : convert size (byte) to KB,MB ,GB
$browser->Count(char what) : what f->file's number d->Dir's number, NULL-> both
$browser->SortListF(char(1) sort_field N | D | S, string ASC | DESC ) : sort files list
$browser->SortListD(char(1) sort_field N | D | S, ASC | DESC ) : sort dirs list