Arkadaşlar scriptte tagmap.php yaptım sitemap tagmap.php olarak gözukuo ancak tagmap xml ye çevrilmiyor yardımcı olabilir mi bilen arkadaşlar


kodlar


<?php header('Content-type: text/xml'); 

echo '<?xml version="1.0" encoding="UTF-8"?>

<urlset

      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9

            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">'; 

include ("include/config.inc.php");

$domain=$general['domain'];

echo '

<url>

  <loc>'.$domain.'</loc>

  <priority>1.00</priority>

  <changefreq>daily</changefreq>

</url>';

$sorgu1 = mysql_query("SELECT * FROM tags order by id desc limit 50000"); 

while ($sonuc1 = mysql_fetch_array($sorgu1)) { 

$s1=".html";

$tag1 = $sonuc1['seotag'];

$tag2 = temizle($sonuc1['tag']);

		if (ereg("[^a-zA-Z0-9_yY?öÖüÜçÇ??yY??!, -_]",$tag1)){

			$sqlgir = "asdesdek";	

		}

		else {

echo "<url>

  <loc>$domain/$tagfiles/$tag1$s1</loc>

  <priority>0.80</priority>

  <changefreq>daily</changefreq>

</url>"; 

}

}  

echo "</urlset>"; 

?>