![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
17/09/2015, 08:52
|
![Avatar de NSD](http://static.forosdelweb.com/customavatars/avatar462878_4.gif) | Colaborador | | Fecha de Ingreso: mayo-2012 Ubicación: Somewhere
Mensajes: 1.332
Antigüedad: 12 años, 9 meses Puntos: 320 | |
Respuesta: recuperar archivos de directorio
Código PHP:
Ver original<?php define(DIRECTORY_PATH , "../../imagenes/"); return ($file_name[0] !== "." && $archivo !== ".."); })); if(count($files) === 0) { echo "No hay archivos."; } else { foreach ($files as $file_name) echo "<a href=\"{DIRECTORY_PATH}/$file_name\" target=\"_blank\">".str_replace("_", " ", $file_name)."</a><br>"; }
__________________ Maratón de desafíos PHP Junio - Agosto 2015 en FDW | Reglamento - Desafios |