Created
June 26, 2013 06:58
-
-
Save dvidsilva/5865315 to your computer and use it in GitHub Desktop.
listar archivos en directorio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$handler = opendir($directory); | |
foreach($files as $f){ | |
if(!in_array($f,array('.','..') ) ) | |
echo $f, '<br/>'; | |
} | |
closedir($handler); | |
/*cambia foldername por ../ vuelvelo a subir y mira la magia y luego por ../../ y asi :P o por ../nombredeotrodir | |
/* hasta encontrar lo que buscas |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment