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.
<?php
$files = glob("images/*.*");
for ($i=0; $i<count($files); $i++)
{
$num = $files[$i];
echo '<img src="'.$num.'" alt="">'."<br>
<br>
<br>
";
}
?>
Even I didn’t understand what you mean saying “vertical images”, getting only images from a directory is more simple in your case;
See more details here: http://php.net/manual/en/function.exif-read-data.php