• 28-07-2009, 16:55:11
    #1
    gethostbyname fonksiyonu içerisine değişken atanamıyor mu
    atamam gerekiyor youtube yine kod değişti

    <?php
    $asd ="v13.lscache5.c.youtube.com";
    $cacheip = gethostbyname('$asd');
    
    
    echo $cacheip;
    ?>
  • 28-07-2009, 17:01:19
    #2
    $cacheip = gethostbyname($asd);

    şeklinde dene

    yani tırnakları kaldır.
  • 28-07-2009, 17:02:46
    #3
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Tırnaklar...
    <?php
    $asd ="v13.lscache5.c.youtube.com";
    $cacheip = gethostbyname($asd);
    
    
    echo $cacheip;
    ?>
  • 28-07-2009, 17:16:06
    #4
    cıx yine olmuyor
  • 28-07-2009, 17:17:28
    #5
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Misafir adlı üyeden alıntı: mesajı görüntüle
    cıx yine olmuyor

    videoları izletemezsin eğer amacın oysa çünkü v13.lscache5.c.youtube.com bu server kapandı.en son verilen kod çalısıyor ama youtube ipsi veriyor o da
  • 28-07-2009, 17:22:25
    #6
    tamamdır youtube videolar için fonksiyon bitti ulan youtube patlatacam sonunda seni

    uyuz
  • 28-07-2009, 18:36:09
    #7
    THR
    Üyeliği durduruldu
    bilmiyorum konu bu mu ama bende şöyle bir kod var hala çalışıyor
    <?php
    ob_start();
    $videoid=$_GET["v"];
    $format = $_GET["fmt"];
    if(empty($format)) $format = 18;
    $content= file_get_contents("http://youtube.com/get_video_info?video_id=$videoid");
    parse_str($content);
    $url = "http://www.youtube.com/get_video.php?video_id=" . $videoid . "&t=" . $token. "&fmt=".$format;
    $headers = get_headers($url);
    
    foreach($headers as $h){
    if(strpos($h,"googlevideo.com")!=false){
    $url = substr($h,10);
    break;
    }
    }
    
    header("Location: $url");
    ob_end_flush();
    ?>
  • 28-07-2009, 19:45:26
    #8
    THR adlı üyeden alıntı: mesajı görüntüle
    bilmiyorum konu bu mu ama bende şöyle bir kod var hala çalışıyor
    <?php
    ob_start();
    $videoid=$_GET["v"];
    $format = $_GET["fmt"];
    if(empty($format)) $format = 18;
    $content= file_get_contents("http://youtube.com/get_video_info?video_id=$videoid");
    parse_str($content);
    $url = "http://www.youtube.com/get_video.php?video_id=" . $videoid . "&t=" . $token. "&fmt=".$format;
    $headers = get_headers($url);
    
    foreach($headers as $h){
    if(strpos($h,"googlevideo.com")!=false){
    $url = substr($h,10);
    break;
    }
    }
    
    header("Location: $url");
    ob_end_flush();
    ?>
    ,


    konu bu değil de çalışmaması da lazım bi deneyeyim