I found the easiest solution for listing directories and files on my server. Please take a look below:
<?
$dir = “images/”; //You could add a $_GET to change the directory
$files = scandir($dir);
foreach($files as $key => $value){
echo $value; //You could add an icon in here maybe, a link to the file/directory, or a link to list files in that directory
}
?>
2 Responses to “PHP: List Directories And Files On my server”
Leave a Reply
Filled Under: PHP


July 20th, 2010 at 8:26 pm
Buy:Zocor.Lasix.Aricept.Wellbutrin SR.Benicar.Cozaar.Nymphomax.Lipitor.Prozac.Buspar.Female Pink Viagra.Zetia.Acomplia.Seroquel.Lipothin.Advair.Ventolin.SleepWell.Female Cialis.Amoxicillin….
August 3rd, 2010 at 3:19 am
amazing stuff thanx