Forum Moderators: coopster
$dir = opendir(".");
while($file = readdir($dir))
if(strrpos($file,".")===false)
echo("<a href='$file'>$file</a><br />");
What I want to do is change the content of the link (currently the folder name) to the title of the page (not the <title> element in the head, but the first <h1> element in the body). Obviously I cannot load all of the pages. My priorities are for it to be 1) fast/efficient, 2) automatic, and 3) space efficient. I am willing to introduce name/id tags, but I would like to avoid creating an file listing the folders for the simple reason that it would not automatically and instantaneously update.
Any suggestions?