PHP generated div boxes which has included php files as content but first 2 divs empty
<p>Here is my code</p>

<pre><code>html&gt;
&lt;head&gt;&lt;/head&gt;
&lt;body&gt;
&lt;?php
$dir    = 'folder/';
$files = scandir($dir);
$count=0;
foreach($files as $file){
        $count++;
            echo '&lt;div style="float:left; margin: 0 0 10px 10px;border:1px solid       #50A4AB;  width:200px"&gt;&lt;br&gt;';
            if(strpos($file,".php")){
                            include($dir.$file);
                                }
                echo '&lt;/div&gt;&lt;br&gt;';
                if($count==7){echo'&lt;div style="clear:both;&gt;&lt;/div&gt;&lt;br&gt;';}
}
?&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>First 2 divs empty and disordered, how to do proper div boxes with included php files,
thanks in advance for any help..</p>
