Just wondering if theres a way for when i add this into a directory it just doesn;t lkist the file in links it lists as links and the date the html was created?
<?
$path = "./";
$path_id = opendir($path);
while($file_name = readdir($path_id))
{
if(($file_name != ".")&&($file_name != ".."))
{
$fileext = strrchr($file_name, ".");
if(($fileext==".html")||($fileext==".htm"))
{
echo "<a href=\"" . $file_name . "\">" . $file_name . "</a><br />";
}
}
}
?>