rendered paste body<?php $time = microtime(); $time = explode(" ", $time); $time = $time[1] + $time[0]; $start = $time;?><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Updates</title><style type="text/css"><!--body,td,th {color: #FF0000;}body {background-color: #000000;}a:link {color: #FF0000;}a:visited {color: #FFFFFF;}a:hover {color: #FF0000;}a:active {color: #FF0000;}--></style></head><body><? $link = $_GET['link']; chdir('D:/Host/Sites/updates/' . $link); $handle=opendir('.'); while (($file = readdir($handle))!==false) { $check = is_dir ($file); if (!$check) { $month = substr($file, 0, 2); $dir = '20' . substr($file, 3, 2); if(stristr($month, '01') == TRUE) { $name = 'January'; } elseif(stristr($month, '02') == TRUE) { $name = 'February'; } elseif(stristr($month, '03') == TRUE) { $name = 'March'; } elseif(stristr($month, '04') == TRUE) { $name = 'April'; } elseif(stristr($month, '05') == TRUE) { $name = 'May'; } elseif(stristr($month, '06') == TRUE) { $name = 'June'; } elseif(stristr($month, '07') == TRUE) { $name = 'July'; } elseif(stristr($month, '08') == TRUE) { $name = 'August'; } elseif(stristr($month, '09') == TRUE) { $name = 'September'; } elseif(stristr($month, '10') == TRUE) { $name = 'October'; } elseif(stristr($month, '11') == TRUE) { $name = 'November'; } elseif(stristr($month, '12') == TRUE) { $name = 'December'; } else { $name = 'ERROR'; } $filename = 'Updates/' . $dir . '/' . $file; //set filename to the file you click on echo '<a href="../updates.php?filename=' . $filename . '" target="Content">' . $name . '</a><br>'; } } closedir($handle); ?><p align="Center"><?php $time = microtime(); $time = explode(" ", $time); $time = $time[1] + $time[0]; $finish = $time; $totaltime = ($finish - $start); printf ("Page took %f seconds to load.", $totaltime);?></p></body></html>