I need to show files that I have in a listing files and directories in mi < iframe > This is my listinf files code:
$directorioInicial = "./";
$rep = opendir($directorioInicial);
echo "<ul>";
while ($todosArchivos = readdir($rep)) {
if ($todosArchivos != '..' && $todosArchivos != '.' && $todosArchivos != '') {
echo "<li>";
echo "<a href=" . $directorioInicial . "/" . $todosArchivos . " target='_blank'>" . $todosArchivos . "</a><br />";
echo "</li>";
}
}
closedir($rep);
clearstatcache();
echo "< /ul>";
I need to do click in the file that I show in my list and the file will be show in my frame, but I dont know how...At the momento I show the file in another page... But it's not what I need... Thank you... This is my frame:
<iframe id="probando" src="<?php echo $url; ?>" scrolling="auto" height="700" width="800" marginheight="0" marginwidth="0" name="probando"></iframe>