Jump to content

show local foler with icons


flemingmike

Recommended Posts

currently i have the following, but it is showing the contents of the server, not the machine that is viewing the website:

 

<?php
$dir = "file:///c:/";
$dh = opendir($dir);
while (false !== ($filename = readdir($dh)))
{
if($filename!='.'&&$filename!='..')
    $files[] = $filename;
}
sort($files);
foreach($files as $value) echo "<a href='{$value}'>{$value}<br>";  

?> 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.