I have a solution in .Net which has a page that shows my images, I would like it to show all the images of a directory (folder), since there are so many I would not like to spend a lifetime referencing with an img src="" to each one of them I would like to do everything in one, also consider the one that the files will continue adding. I have read forums with codes that do PHP but I do not know how to adapt it, I usually do it like this:
<img src="http://www.deceroadoce.es/wp-content/uploads/2015/11/leopardo-museo-prehistoria-valencia.jpg" class="img-responsive" style="border-radius:10px;" width:300%; height:200%; />
<img src=" http://jsequeiros.com/sites/default/files/imagen-cachorro-comprimir.jpg" class="img-responsive" style="border-radius:10px;" width:300%; height:200%; />
but what I would like is not to use the src for each image because as I mentioned there are many and with the possibility that they continue to increase, I leave the PHP code that I found but I still do not implement it, thanks
<?php
echo "<h3>Index</h3>\n";
echo "<table>\n";
$directorio = opendir(".");
while ($archivo = readdir($directorio))
{
$nombreArch = ucwords($archivo);
$nombreArch = str_replace("..", "Atras", $nombreArch);
echo "<tr>\n<td>\n<a href='$archivo'>\n";
echo "<img src='./imagenes/carpeta.png' alt='Ver $nombreArch'";
echo " border=0>\n";
echo "<b> $nombreArch</b></a></td>\n";
echo "\n</tr>\n";
}
closedir($directorio);
echo "</table>\n";
?>