///////////////////////////////////////
//Dynamic article lyst using metatags//
// By: Stefan Zarya //
//////////////////////////////////////
///////////////Constants//////////////
$dirname="articles"; //The directory containing the articles
///////////////Constants//////////////
if (!is_dir($dirname)) //If we can't find the directory we should exit
die("Directory $dirname is invalid");
$dir=opendir($dirname);
while ($file = readdir($dir)) //Read every file through the directory
{
if($file!="." && $file!="..") //Skip the current directory and parent directory files
{
$metatags=get_meta_tags("$dirname/$file"); //Read all the metatags into a hash array
print("$metatags[title] By:$metatags[author]
");
}
}
?>