PHP-Code:
[...]
function 
getResulst($directory '.'$recursive true$extensions = Array('html''htm''txt''php'), $exclude = Array('./menü.htm'), $files = Array()) {
    
$dir dir($directory);
    while(
$file $dir->read()) {
        if(
in_array($dir->path '/' $file$exclude)) {
            continue;
        } elseif(
is_dir($dir->path '/' $file)) {
            if(
$recursive) {
                
$files   getResulst($dir->path '/' $file$recursive$extensions$files);
            }
        } elseif(
$file[0] != '.' && ($ext strrpos($file'.')) && in_array(substr($file$ext 1), $extensions) && is_readable($dir->path '/' $file)) {
            
// Datei durchsuchen
            
$content file_get_contents($dir->path '/' $file);
            if(
searchWord($content)) {
                
$files[] = $dir->path '/' $file;
            }
        }
    }
    
$dir->close();
    return 
$files;
}
[...]