<?php header("Content-type: text/xml"); ?>
<?php '<?xml version="1.0" encoding="UTF-8"' ?>
<?php '<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">'?>
<?php 
include("includes/Ayar.inc.php");
include("includes/Function.inc.php");
?>
<?php echo '<urlset>' ?>
<?php $sql = mysql_query("Select *,i.id as cid from icerik as i inner join kategori as k on i.katid=k.id where i.onay='1' order by RAND() LIMIT 200");
while($mak= @mysql_fetch_array($sql)) {?>
<?php echo "\t".'<url>'."\n\t\t"; ?>
<?php echo '<loc><a href=http://www.site.com/.$mak[katid]."/".Duzenle($mak[kategoriad])."/".$mak[cid]."/".Duzenle($mak[baslik]).html>http://www.zayifguzel.com/.$mak[katid]."/".Duzenle($mak[kategoriad])."/".$mak[cid]."/".Duzenle($mak[baslik]).html</a><p></loc>."\n\t\t";' ?>
<?php echo  '<lastmod>".$mak[tarih]."</lastmod>
  <changefreq>always</changefreq>
  <priority>0.9</priority>
</url>"'; ?>
<?php }?>
<?php echo '</urlset>' ?>
Buyur Kardeşim.
Kolay Gelsin.