Ver Mensaje Individual
  #8 (permalink)  
Antiguo 14/09/2011, 15:38
Avatar de rodrigoemece
rodrigoemece
 
Fecha de Ingreso: septiembre-2011
Mensajes: 68
Antigüedad: 12 años, 7 meses
Puntos: 1
Respuesta: Error al descargar archivos con espacios

Código PHP:
Ver original
  1. </td>
  2.       <td bgcolor="#768491" width="1">&nbsp;</td>
  3.       <td style="padding-left: 1em; vertical-align: top; background-color: rgb(255, 255, 255); width: 80%;">
  4.      Apuntes na categor&iacute;a: <strong> <?php $arq = ($_GET["arq"]); echo "$arq/" ?></strong>
  5.       <br><br><div id="archivos">
  6.       <?php if ($gestor = opendir($_GET["arq"])) {
  7.         echo "<ul>";
  8.         while (false !== ($arch = readdir($gestor))) {
  9.            if ($arch != "." && $arch != "..") {
  10.              echo "<a href=" . $_GET["arq"] . "/". $arch. "\" class=\"linkli\">" . $arch . "</a>\n";
  11.            }
  12.         }
  13.         closedir($gestor);
  14.         echo "</ul>";
  15.     }
  16.     ?></div>
  17.       </td>
  18.      
  19.     </tr>
  20.   </tbody>
  21. </table>
  22. </body></html>