php glob doesn't read vertical images
<p>Would anybody know how to edit the following code to display the vertical images in the directory accurately? The default seems to be horizontal. Thanks very much.</p>

<pre><code>&lt;?php
$files = glob("images/*.*");
for ($i=0; $i&lt;count($files); $i++)
{
$num = $files[$i];
echo '&lt;img src="'.$num.'" alt=""&gt;'."&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
";
}
?&gt;
</code></pre>
