buenas implemente el codigo que vi y me quedo de la siguiente forma
Código PHP:
<?php
// Note that !== did not exist until 4.0.0-RC2
if ($handle = opendir('../publicos')) {
echo "Directory handle: $handle\n";
echo "Files:\n";
/* This is the correct way to loop over the directory. */
while (false !== ($file = readdir($handle))) {
echo '<tr title="CLICK PARA VER EL REPORTE" onMouseOver="this.style.cursor=\'hand\'" onClick="window.open(\'../publicos/'.$filen.')">
<td align="center" class="SemVerde">1</td>
<td class="SemVerde">"'.$filen.'"</td>
<td class="SemVerde"></td>
<td class="SemVerde"></td>
<td class="SemVerde"></td>
<td class="SemVerde"></td>
</tr>';
}
/* This is the WRONG way to loop over the directory. */
while ($file = readdir($handle)) {
echo '<tr title="CLICK PARA VER EL REPORTE" onMouseOver="this.style.cursor=\'hand\'" onClick="window.open(\'../publicos/'.$filen.')">
<td align="center" class="SemVerde">1</td>
<td class="SemVerde">"'.$filen.'"</td>
<td class="SemVerde"></td>
<td class="SemVerde"></td>
<td class="SemVerde"></td>
<td class="SemVerde"></td>
</tr>';
}
closedir($handle);
}
?>
ya identifique el problema que tenia, es el tipo de concatenacion yo lo tengo '.$file\n.', sin embargo para que funcione tiene que estas '."$file\n".', pero esto ase que no funcione el vinculo para ver o descargar el documento alguien me podria orientar