<?php
/**
* This is only a test and a "show to use"
**/
require_once('Dir2Array.class.php');
$o = new Dir2Array( '.' );
$o -> setShowFoldersFirst( 1 );
$o -> setShowHiddenFiles( 0 );
$o -> setShowDirLinks( 0 );
$o -> addIgnoreFilesRegex( '/^Arbeits/' );
$o -> removeIgnoreFilesRegex( '/^Arbeits/' );
$o -> setSortOrder( SORT_NATURAL | SORT_FLAG_CASE );
$a = $o -> getArray();
header ('Content-Type:text/plain; charset=UTF-8');
foreach ( $keys as $file ) {
print "$file: ";
}
$err=$o -> getErrors();
if ($err) {
print "\n";
print "\n";
} else {
print "\nKeine Fehler.\n" ;
}