Hi all,
I wanted to make a frontend for a website i was working on, I have been looking around and cant find anything similar on her.
I saw this code here
<?php
$dir = '/tmp';
$files1 = scandir($dir);
print_r($files1);
?>
Which would give this:
Array
(
[0] => .
[1] => ..
[2] => bar.php
[3] => foo.txt
[4] => somedir
)
my question to the community is hwo can i edit this to create html links to the documents in a certain folder, that when clicked on open the file (.doc, .txt, .html, .jpeg etc etc) in the deafult windows application (possibly alos working on linux if that changes anythign)
I realise this is a major ask but im really stuck, it would take me forever to work this out.
Thanks