include("$_SERVER[DOCUMENT_ROOT]/menu.php"); echo "
Keep up to date with UHS Band news and announcements by reviewing our newsletters, put together by our student Communications Officer.
"; $documents = scandir("$_SERVER[DOCUMENT_ROOT]/assets/newsletters/"); foreach($documents as $document) { if(is_file($document)) { list($filename,$extension) = explode(".",$document); if($extension == "pdf") { $latest = $document; } } } echo ""; echo "New newsletters must be named in the format YYYY-MM-DD.pdf according to publication date."; echo "
"; }