Skip to content Skip to sidebar Skip to footer

Link To Code Automatic

I have lots of PDF files that I scan daily. I also have my own website. Here's its index.html: This is my site and docs I wan

Solution 1:

$files = scandir(__DIR__);
$files = array_diff($files, array('.', '..'));

foreach ($files as $file) {

    echo "<a href='" . $file . "'>" . $file . "</a><br>";
}
  1. Scan dir
  2. Remove the dots
  3. Output the files into the page and maybe add a link

Post a Comment for "Link To Code Automatic"