I have the following code to output images from directory im/, how can I tweak this to also output images from another diectory called out/ (for example)? As to echo another img tag under the current one?
<?php
$imgDir = "im/";
$images = scandir($imgDir);
$ignore = array( ".", ".." );
natsort($images);
foreach($images as $file)
{
if(!in_array($file, $ignore))
{
echo "<div id=\"slideWrapper\">\n";
echo "<img src=\"im/$file\" width=\"1000\" height=\"683\" alt=\"$files\" />\n";
echo "</div>\n";
};
}
?>