Alıntı
header("Content-type: text/xml");
$x = '<'.'?'.'xml version="1.0" encoding="ISO-8859-9"'.'?'.'>';
$y = '<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/09/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
$c = $x . $y;
$sqlVideo = mysql_query("select * from video order desc by id") or die(mysql_error());
$dosya = fopen($_SERVER[DOCUMENT_ROOT].'/sitemap.xml', 'w');
fwrite($dosya, $c);
while($rowVideo = mysql_fetch_array($sqlVideo)){
$url = $siteadi . "/video.php?v=" . $rowVideo['video_id'] . "&" . link_yap($rowVideo['video_adi']);
$veri = "
<url>
<loc>".$url."</loc>
<changefreq>always</changefreq>
<priority>0.9</priority>
</url>";
fputs($dosya, $veri);
}
fputs($dosya, "</urlset>");
fclose($dosya);şeklinde yaptım. ve ana dizinde sitemap.xml dosyamda var. hata nereden kaynaklanıor acaba.. kodların ayar.php ve connect.php dosyalarını yazmadım siz onları tahmin ediorsunuzdur neler olduğunu.