PHP scandir causing extra files
<p>Why is it when i use scandir using PHP i get extra values</p>

<pre><code>$portID = $this-&gt;id;
$dir = '/home/sites/mydomain.com/public_html/public/images/'.$portID;
$contents = scandir($dir);
</code></pre>

<p>Is there something i dont know about the function which produces more values than are actually in the folder?</p>
