I'm trying to list a directory of files that are named for the dates they were created ( they are minutes and agenda)
Example: minutes 02222005.htm
to display in a list that converts the name to Feb 22, 2005 as a link to the respective files.
Using this to list the files but have no idea how to deal with the dates.
Ideas?
<?
//define the path as relative
$path = "district/board/";
//using the opendir function
$dir_handle = @opendir($path) or die("Unable to open $path");
echo "Directory Listing of $path<br/>";
//running the while loop
while ($file = readdir($dir_handle))
{
if($file!="." && $file!="..")
echo "<a href='$path$file'>$file</a><br/>";
}
//closing the directory
closedir($dir_handle);
?>