seydift
Öğrenci
- Katılım
- 17 Ocak 2018
- Mesajlar
- 17
- Reaksiyon puanı
- 1
- Puanları
- 3
- Yaş
- 49
<?php
header("Content-type: text/xml");
echo'<?xml version=\'1.0\' encoding=\'UTF-8\'?>';
echo' <urlset xmlns="www.sitemaps.org - /schemas/sitemap/0.9/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="www.sitemaps.org - /schemas/sitemap/0.9/ http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">';
define('BASEPATH', true);
include('config.php');
$sql = mysql_query("SELECT url FROM `siteler` WHERE onay=0 ORDER BY id desc limit 50"); // sql e bağlandığınızı varsayıyorum.
while ($string = mysql_fetch_array($sql)){?>
<url>
<loc><?echo $string['url'];?></loc>
<changefreq>weekly</changefreq>
</url>
<?php } ?>
</urlset>
header("Content-type: text/xml");
echo'<?xml version=\'1.0\' encoding=\'UTF-8\'?>';
echo' <urlset xmlns="www.sitemaps.org - /schemas/sitemap/0.9/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="www.sitemaps.org - /schemas/sitemap/0.9/ http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">';
define('BASEPATH', true);
include('config.php');
$sql = mysql_query("SELECT url FROM `siteler` WHERE onay=0 ORDER BY id desc limit 50"); // sql e bağlandığınızı varsayıyorum.
while ($string = mysql_fetch_array($sql)){?>
<url>
<loc><?echo $string['url'];?></loc>
<changefreq>weekly</changefreq>
</url>
<?php } ?>
</urlset>