"; //Enter your website URL below $site = "http://www.ashburnham-insurance.co.uk/"; //Map the directory that this file is in map(".", $site); //Map a higher directory such as yoursite.com/articles/old/ map("articles/old", $site); //Do not edit the function below function map($dir, $site){ $dir = opendir($dir); while(($file = readdir($dir)) !== false) { if($file != "."){ if($file != ".."){ //Make sure were only outputing file's and not directories if(strpos($file, ".") != ""){ echo "$site$file\r\n"; } } } } closedir($dir); } echo ""; ?>