arkadaşlar sonunca çözdüm
Alıntı
<?php
include ("ayar.php");
include ("Aktarimlar/fonksiyonlar.php");
global $prefix,$siteadi;
$site_adi="http://www.alokatolog.com";
echo header('Content-type: text/xml');
echo"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n
<urlset 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\"
xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"> \n
<url>\n
<loc>".$site_adi."</loc>\n
<changefreq>daily</changefreq>\n
<priority>1.0</priority>\n
</url>\n";
$sorgu=mysql_query("SELECT * FROM ".$prefix."_haberler");
while ($sonuc=mysql_fetch_array($sorgu)){
$baslik=seola($sonuc["baslik"]);
$id=$sonuc["id"];
echo"<url>\n
<loc>".$site_adi."/".$id."-".$baslik.".".html."</loc>\n
<changefreq>daily</changefreq>\n
<priority>0.8</priority>\n
</url>\n";
}
echo"</urlset>";
echo $siteadi;
?>