• 05-08-2008, 13:36:23
    #10
    Erol adlı üyeden alıntı: mesajı görüntüle
    Benim kodlarım böyle, hata nerde?
    <?
        // Sayfa Ayarlari Yapiliyor...
        $sayfa='sitemap.php';
         include 'ayar.php';
    ?>
    <html>
    <head>
    <title>Program Arsivi - <?=$site_isim?></title>
        <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-9">
        <META NAME="keywords" CONTENT="Program ***** Game Software XXX Music Magazine EBookgrup resim harita liste map">
        <META NAME="description" CONTENT="Sitemizde bulunan tüm Program ***** Game Software XXX Music Magazine EBook listesi bu bölümde yer aliyor.">
    <?=$meta?>
    <link href="style.css" rel="stylesheet" type="text/css">
    <script language="JavaScript" type="text/JavaScript" src="javascript.js"></script>
    </head>
    <body><font size="1" face="Verdana">
    <? if (!$k1) { $k1=0; }
        $k2=100;
        $sorgu=mysql_query("select id,ad from z_inndir WHERE (durum='a') order by id desc limit $k1,$k2 ");
        $sayi=15000;
        while ($satir = mysql_fetch_array($sorgu)) {
            echo '• <a href="'.dosya($satir[ad]).'_'.$satir[id].'.htm" title="'.$satir[ad].'" target="_blank">'.$satir[ad].'</a><br>
            ';
        }
        echo '<hr><center>';
        if ($sayi > $k2) { 
            /* Önceki Sayfa Linki
            if ($k3>0) { 
                echo '<a href="'.$sayfa.'?k1='.$k3.'"><b>« Önceki Sayfa</b></a>';
            }
            // Önceki Sayfa Linki */
            // Sayfa Numlaralari Listesi
            $kat1=$k2*16;
            $kat2=$k2*18;
            if ($k1>$kat1) {
                $a1=$k1-$kat1; $a2=$k1+$kat1;
            } else { 
                $a1=0; $a2=$kat2;
            }
            if ($a2>$sayi) { $a2=$sayi; }
            for ($a=$a1;$a<$a2;$a=$a+$k2) {
                $link1=@($a/$k2)+1;
                $cik=($k1/$k2)+1;
                if ($cik==$link1) { 
                    echo ' <b>['.$link1.']</b> ';
                } else  { 
                    echo ' [<a href="'.$sayfa.'?k1='.$a.'">'.$link1.'</a>] ';
                }
            } 
            // Sayfa Numlaralari Listesi
            /* Sonraki Sayfa Link
            if ($k4<$sayi) { 
                echo '<a href="'.$sayfa.'?k1='.$k4.'"><b>Sonraki Sayfa »</b></a>';
            }
            // Sonraki Sayfa Link */
        } ?>
    </font>
    </body>
    </html>
    Şöyle kullan;
    <?php
    include 'ayar.php';
    header("content-type: text/xml");
    echo '<?xml version="1.0" encoding="UTF-8"?>';
    ?>
    <urlset
    xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
    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/09/sitemap.xsd">
    <?php
    $sonuc = mysql_query("select id,ad from z_inndir WHERE (durum='a') order by id desc");
    while($satir = mysql_fetch_assoc($sonuc)){
    ?><url>
      <loc>http://www.sitem.com/<?php echo dosya($satir[ad]).'_'.$satir[id].'.htm'; ?></loc>
      <priority>0.5</priority>
      <changefreq>daily</changefreq>
    </url>
    <?php
    }
    ?>
    </urlset>
    Google webmaster tools site haritaları bölümünden de url yi ekle. Sitenden link vermene gerek yok.
  • 05-08-2008, 13:41:15
    #11
    reseller_bayisi adlı üyeden alıntı: mesajı görüntüle
    a kafam karıştı şimdi ben linkleri bu kodla çağırıyorum php sayfada
    <?
    include("aynasiz.php");
    $sarkioku = mysql_query("SELECT * FROM sarki where sarki_onay='1'");
    while($oku = mysql_fetch_array($sarkioku))
    { 
    $sarki = $oku['sarki'];
    $soyleyen = $oku['soyleyen'];
    $adi = $oku['adi'];
    $id = $oku['sarki_id'];
    $hit = $oku['hit'];
    echo"<li><a href=\"akor-".$id."-".$new_string = replace_tr($soyleyen)."-".$new_string = replace_tr($adi).".html"."\">".$soyleyen." - ".$adi."</a> </li>  "; 
    }
    ?>
    buna göre xml sayfa nasıl olmalı acaba ?
    Sende böyle kullan;
    <?php
    include 'aynasiz.php';
    header("content-type: text/xml");
    echo '<?xml version="1.0" encoding="UTF-8"?>';
    ?>
    <urlset
    xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
    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/09/sitemap.xsd">
    <?php
    $sonuc = mysql_query("SELECT id, soyleyen, adi FROM sarki where sarki_onay=1");
    while($satir = mysql_fetch_assoc($sonuc)){
    ?><url>
      <loc>http://www.sitem.com/<?php echo 'akor-'.$satir[id].'-'.replace_tr($satir[soyleyen]).'-'.replace_tr($satir[adi]); ?>.html</loc>
      <priority>0.5</priority>
      <changefreq>daily</changefreq>
    </url>
    <?php
    }
    ?>
    </urlset>
  • 05-08-2008, 13:43:23
    #12
    Üyeliği durduruldu
    ErsaT adlı üyeden alıntı: mesajı görüntüle
    Şöyle kullan;
    <?php
    include 'ayar.php';
    header("content-type: text/xml");
    echo '<?xml version="1.0" encoding="UTF-8"?>';
    ?>
    <urlset
    xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
    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/09/sitemap.xsd">
    <?php
    $sonuc = mysql_query("select id,ad from z_inndir WHERE (durum='a') order by id desc");
    while($satir = mysql_fetch_assoc($sonuc)){
    ?><url>
      <loc>http://www.sitem.com/<?php echo dosya($satir[ad]).'_'.$satir[id].'.htm'; ?></loc>
      <priority>0.5</priority>
      <changefreq>daily</changefreq>
    </url>
    <?php
    }
    ?>
    </urlset>
    Google webmaster tools site haritaları bölümünden de url yi ekle. Sitenden link vermene gerek yok.
    sağolasın deniyim.
  • 05-08-2008, 13:54:29
    #13
    Üyeliği durduruldu
    Teşekkürler Ersat
  • 05-08-2008, 15:04:41
    #14
    Üyeliği durduruldu
    bende hata verdi gene
    errors yazıyor kırmızı yazıyla
    11k veri war o yüzden mi acep
  • 05-08-2008, 15:53:32
    #15
    Erol adlı üyeden alıntı: mesajı görüntüle
    bende hata verdi gene
    errors yazıyor kırmızı yazıyla
    11k veri war o yüzden mi acep
    $sonuc = mysql_query("select id,ad from z_inndir WHERE (durum='a') order by id desc");
    Bunu
    $sonuc = mysql_query("select id,ad from z_inndir WHERE (durum='a') order by id desc limit 20");
    yap. Çalışırsa 11k olduğu içindir. Eğer öyleyse <?php den hemen sonra set_time_limit(0); ekle.
    Alıntı
    <?php
    set_time_limit(0);
  • 29-08-2008, 18:36:29
    #16
    bende sitemap hazırlamaya çalışıyorum ama sürekli hata alıyorum...yardımcı olabilirmisiniz acaba...
    site imzamdaki sitedir
  • 30-08-2008, 00:33:34
    #17
    illegal01 adlı üyeden alıntı: mesajı görüntüle
    bende sitemap hazırlamaya çalışıyorum ama sürekli hata alıyorum...yardımcı olabilirmisiniz acaba...
    site imzamdaki sitedir
    Şurdaki sitemap ise bir sorun göremedim ben.
  • 08-09-2008, 09:18:05
    #18
    nerde hata yapıyorum....yardımcı olabilirmisiniz

    <?php
    include 'ayarlar.php';
    header("content-type: text/xml");
    echo '<?xml version="1.0" encoding="UTF-8"?>';
    ?>
    <urlset
    xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
    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/09/sitemap.xsd">
    <?php
    $sql=@mysql_query("Select * from oyunlar WHERE (durum='a') order by id desc");
        while ($oyun=mysql_fetch_array($sql)) { 
    	$oyun_kat=mysql_fetch_array(@mysql_query("Select * from kategori where id='$oyun[oyun_kategori]'"));?><url>
      <loc>http://www.flash-oyun.net/<?=$oyun_kat[k_adi_seo];?>/<?=$oyun[oyun_adi_seo];?>-<?=$oyun[id];?>.html</loc>
      <priority>0.5</priority>
      <changefreq>daily</changefreq>
    </url>
    <?php
    }
    ?>
    </urlset>