Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('ayar.php');
- header('Content-type: text/xml');
- $cikti.="<?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>$siteAnasayfa</loc>\n
- <changefreq>daily</changefreq>\n
- <priority>1.0</priority>\n
- </url>\n";
- $sql="SELECT * FROM urun";
- $sorgu=mysql_query("$sql");
- while ($sonuc=mysql_fetch_array($sorgu)){
- $cikti .= "\n
- <url>\n
- <loc>$site/$sonuc[adres].html</loc>\n
- <changefreq>daily</changefreq>\n
- <priority>0.8</priority>\n
- </url>\n";
- }
- $sql="SELECT * FROM kat";
- $sorgu=mysql_query("$sql");
- while ($sonuc=mysql_fetch_array($sorgu)){
- $cikti .= "\n
- <url>\n
- <loc>$site/$sonuc[adres].html</loc>\n
- <changefreq>daily</changefreq>\n
- <priority>0.8</priority>\n
- </url>\n";
- }
- $cikti.="</urlset>";
- echo $cikti;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement