Aşağıdaki gibi bir sitemap:
<?php
include ("mainfile.php");
$fileout = 0;
$out = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<urlset xmlns=\"http://www.google.com/schemas/sitemap/0.84\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xsi:schemaLocation=\"http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd\">";
$res = sql_query("SELECT sid, time FROM " . $prefix . "_stories ORDER BY sid ASC", $dbi);
while($result = sql_fetch_array($res, $dbi, MYSQL_ASSOC)){
$time = explode(" ", $result["time"]);
$out .= "
<url>
<loc>$nukeurl/konu" . $result["sid"] . ".html</loc>
<lastmod>" . $time[0] . "</lastmod>
</url>";
}
$out .= "\n</urlset>";
header("Content-type: application/xml");
echo $out;
?>var elimde, fakat gugıl amca hata var diyor:Başlangıçtaki beyaz alan
Site Haritası dosyanızın beyaz alanla başladığını belirledik. Dosyayı kabul ettik, ancak dosyanın XML standardına uygun olması için beyaz alanı kaldırmak isteyebilirsiniz.
diyor.
Hata nedir koddaki?