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>";
}
- Scan dir
- Remove the dots
- Output the files into the page and maybe add a link
Post a Comment for "Link To Code Automatic"