```
<?
$dir=scandir('/home/crusty/www/crusty.bshellz.pl/htdocs/404/');

foreach($dir as $file){
        if($file!='.' && $file!='..' && $file!='index.php'){
                $choice=$dir[rand(0, count($dir) - 1)];
                include($choice);
        }
}
?>

```

I have a little problem with that code. Of course it is working on some files but it is still trying to include index.php, .. and .
Can sameone help me with solving it?