Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

list all files in directory php

$path    = './';
$files = scandir($path);
$files = array_diff(scandir($path), array('.', '..'));
foreach($files as $file){
  echo "<a href='$file'>$file</a>";
}
 
PREVIOUS NEXT
Tagged: #list #files #directory #php
ADD COMMENT
Topic
Name
9+2 =