• 02-08-2009, 23:28:43
    #1
    veri alınan site : whois.domaintools.com
    hata : 1 kez veri alındığında hata yok. fakat 2. kez gittiğimde en sonda verilen çıktıyı veriyor.

    zaten file_get_contents in engellenmiş oldugu bu domain sitesinden nasıl veriyi hatasız alabilirim ?

     function site_kaynak($url) {
            if (function_exists('curl_init')) {
                $ch = curl_init($url);
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                
    
    if (ini_get("safe_mode"=="Off") or ini_get("open_basedir")=="")
    {curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);}
    else curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); 
    
                curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
                return curl_exec($ch);
            } else {
                return file_get_contents($url);
            }
     }
    
    
    
    function k2temizle($tarihindex)  {
    
    
    $eskisi = array("<tr >","</td>","</tr>","Created:","Expires:","Updated:");
    $yenisi = array("","","","","","","","");
    
    $donustur = trim(str_replace($eskisi,$yenisi,$tarihindex));
    
    return $donustur;
    }
    
    
    
    
    
    
    function kontrol2 ($domain,$uzanti="") {
    
    
    $gitsite = site_kaynak("http://whois.domaintools.com/$domain.$uzanti");
    $ayirma = explode("registryDataContainer",$gitsite);
    
    
    $son = explode("serverDataContainer",$ayirma[1]);
    $bolme = split("<td class=",$son[0]);
    
    
    echo $gitsite;
    
    }

    $d = $list["dname"];
    $i = $list["domainid"];
    $s = $list["durum"];
    
    kontrol2($d,"com",$s,$i);
    çıktı :

    ����������ÿÿå=isÛÆ��É_1¦7&i� )Ûò3)*¥È�ã��¸,m¼õ¼^HIÄ �à�Äøé¿¿î�©ÃIv«V�-`��î��¾039\eëà¨y¸â®wÔlf~ğ£S>Ï?Û°�£Ì�óÃ�(n2ø1ÿ~ø�%<�¶Ü ãIèf¼Å²MÌ¡ ��îf~�4İ»ZP�P¦*÷§§lß¶Ø*á�ik�eñx0�ÑÒñ¢µë�Y©3�Ö�çŞ ÅGM±4j�m�®8ÏÔ°¿Êó4m5�F|åÉ�W �eÍÜà<�'��ôÿv´ÿô/^�½xN£³"åwÃ�*¹ç»ÓV�ÀÈ-p_ÜÎ FC�` £U�dó< ë�½¼¼¬2ܽÀæN. áÆ÷ãÌ&í7÷Â¥x�Ìo$�Ú§�(ç7$ãÉ�áüµ�e½Ö¶��nºJ;?¶/W��¶{íôûSïcÛñıåϧôûá
  • 03-08-2009, 09:53:01
    #2
    yardımcı olabilecek yok mu acaba
  • 03-08-2009, 13:18:40
    #3
    Eposta Aktivasyonu Gerekmekte
    Curl açık mı sunucuda?
  • 03-08-2009, 14:16:32
    #4
    evet curl çalışıyor.