1
Hello I made this program that lists the photos of my directory , only I wanted that when clicking on the list of the photo appears the photo on screen with php.
<?php
$path = "C:\FOTOS COOPERADOS 2013";
$diretorio = dir($path);
echo "Lista de Arquivos do diretório '<strong>".$path."</strong>':<br />";
while($arquivo = $diretorio -> read()){
echo "<a href='".$path.$arquivo."'>".$arquivo."</a><br />";
}
$diretorio -> close();
?>
already tried so? echo "<a href='". $file." '>". $file." </a><br />";
– Fabiano Cacin Pinel
yes give the following error Object not found! The requested URL was not found on this server. The link on the mentioned page seems to be in error or out of date. Please inform the author of this page about the error.
– allan araujo
Ok, show how the link of an image does not open
– Fabiano Cacin Pinel