• 26-03-2013, 22:21:00
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    merhaba arkadaslar bir site diyelim bu sitedeki sitemap.xml den sadece linkleri cekip ekrana yazdırmasını istiyorum sitemap su sekile
    <url><loc>http://www.xxx.com/xxx-xxx-yyy.html</loc><changefreq>never</changefreq></url>
    ben sadece http://www.xxx.com/xxx-xxx-yyy.html linklerini almak istiyorum ve ekrana yazdırılmasını istiyorm yardım eden olursa cok sevinirim
  • 26-03-2013, 22:38:07
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Şunu bir incele derim.
  • 26-03-2013, 22:46:44
    #3
    anlamadim ve yapamadim
  • 26-03-2013, 22:50:50
    #4
    bana sitemap adresini pm le bir bakayım.
  • 26-03-2013, 23:38:14
    #5
    yolladim hocam. bilen baska arkadas varsa paylasirsa cok sevinirim
  • 27-03-2013, 01:44:37
    #6
    Üyeliği durduruldu
    Alıntı
    <?php
    $xml= simplexml_load_file('xmladresin.xml');
    for ( $i=0 ; $i > 0 ; $i++ )
    {
    echo $xml->url[$i]->loc;
    }
    ?>
    işini görecektir.
  • 27-03-2013, 02:42:27
    #7
    Kimlik doğrulama veya yönetimden onay bekliyor.
    ## START | - Mysql
    $dbhost = 'localhost';											
    $dbuser = '';												
    $dbpass = '';										
    $dbname = '';
    $dbh = mysql_connect($dbhost,$dbuser,$dbpass) or die ("not connect : ".mysql_error());														
    mysql_select_db($dbname) or die ("not select : ".mysql_error());
    
    ## STOP  | - Mysql
    
    ##################################
    
    ## START | Curl bağlan
    function siteBaglan($url){
    	$ch = curl_init();
    	curl_setopt($ch, CURLOPT_URL, $url);
    	$browser = $_SERVER['HTTP_USER_AGENT'];
    	curl_setopt($ch, CURLOPT_USERAGENT,"googlebot");
    	curl_setopt($ch, CURLOPT_HEADER, 0);
    	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    	curl_setopt($ch, CURLOPT_REFERER, "http://www.google.com/");
    	$source = curl_exec($ch);
    	curl_close($ch);
    	return $source;
    }
    ## STOP | Curl bağlan
    
    ##################################
    
    # | ALL URL | START
    
    $site = 'http://www.funnyplace.org/sitemap.xml';
    preg_match_all('#<loc>(.*?)</loc>#s',siteBaglan($site),$urller);
    $url="";
    for ($a=0; $a<count($urller[1]); $a++) {
    	$url .=$urller[1][$a].'<hr>';	
    	 
    }
    # | ALL URL | STOP
    
    echo $url;


    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 02:42:27 -->-> Daha önceki mesaj 02:29:36 --

    Durum nedir bilgilendirir misin.
  • 27-03-2013, 03:45:36
    #8
    JeeKi adlı üyeden alıntı: mesajı görüntüle
    ## START | - Mysql
    $dbhost = 'localhost';											
    $dbuser = '';												
    $dbpass = '';										
    $dbname = '';
    $dbh = mysql_connect($dbhost,$dbuser,$dbpass) or die ("not connect : ".mysql_error());														
    mysql_select_db($dbname) or die ("not select : ".mysql_error());
    
    ## STOP  | - Mysql
    
    ##################################
    
    ## START | Curl bağlan
    function siteBaglan($url){
    	$ch = curl_init();
    	curl_setopt($ch, CURLOPT_URL, $url);
    	$browser = $_SERVER['HTTP_USER_AGENT'];
    	curl_setopt($ch, CURLOPT_USERAGENT,"googlebot");
    	curl_setopt($ch, CURLOPT_HEADER, 0);
    	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    	curl_setopt($ch, CURLOPT_REFERER, "http://www.google.com/");
    	$source = curl_exec($ch);
    	curl_close($ch);
    	return $source;
    }
    ## STOP | Curl bağlan
    
    ##################################
    
    # | ALL URL | START
    
    $site = 'http://www.funnyplace.org/sitemap.xml';
    preg_match_all('#<loc>(.*?)</loc>#s',siteBaglan($site),$urller);
    $url="";
    for ($a=0; $a<count($urller[1]); $a++) {
    	$url .=$urller[1][$a].'<hr>';	
    	 
    }
    # | ALL URL | STOP
    
    echo $url;


    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 02:42:27 -->-> Daha önceki mesaj 02:29:36 --

    Durum nedir bilgilendirir misin.
    hocam cok tskler oldu walla
  • 27-03-2013, 03:49:47
    #9
    olduysa sorun yok sevindim. Kolay gelsin.