Answers for "php get all php files in folder"

PHP
11

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>";
}
Posted by: Guest on November-05-2020
0

php get files in folder

$files = array_diff(scandir($path), array('.', '..'));
Posted by: Guest on August-27-2021

Code answers related to "php get all php files in folder"

Browse Popular Code Answers by Language