PHP problem with include
<pre><code>&lt;?
$dir=scandir('/home/crusty/www/crusty.bshellz.pl/htdocs/404/');

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

<p>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?</p>
