I am trying to edit a sitemap creator script to use the <title> for the hyperlink and then to display the <description>.
So far all I'm succeeding at is getting the hyphen that I placed between the <title> and <description>. Here is the code I am using, like I said this is my own "newbie"editing attempt. (I added the lines:
$mt = @get_meta_tags($sfiles);
$title = $mt[title];
$description = mt[description];
and also the insertion of $title and $description in the <a href portion.)
chdir($chdir);
if(is_array($sfiles))
{
sort($sfiles);
reset($sfiles);
if(!isset($display))
{ $display = "both"; }
$sizeof = sizeof($sfiles);
for($y=0; $y<$sizeof; $y++)
{
if(ereg("php$", $sfiles[$y]) && ($display == "both" || $display == "PHP"))
{
echo "<tr><td>";
for($z=1; $z<=$count; $z++)
{ echo "<img align=absmiddle src=vertical.gif> "; }
if($y == ($sizeof -1))
{ echo "<img align=absmiddle src=verhor1.gif>"; }
else
{ echo "<img align=absmiddle src=verhor.gif>"; }
echo "<img align=absmiddle src=php.gif> ";
$mt = @get_meta_tags($sfiles);
$title = $mt[title];
$description = mt[description];
echo "<a href=$prefix$dir1/$sfiles[$y]>$title</a>- $description</td></tr>";
}
Thanks for any help 🙂
Bernadette