• 26-08-2010, 06:42:44
    #1
    ..........
  • 26-08-2010, 08:09:05
    #2
    Curl kullan.
  • 26-08-2010, 10:22:25
    #3
    function adresDownload($Url){ 
        if (!function_exists('curl_init')){ 
            die('CURL yüklü değil!');
        } 
        $ch = curl_init(); 
        curl_setopt($ch, CURLOPT_URL, $Url); 
        curl_setopt($ch, CURLOPT_REFERER, "http://www.google.com/"); 
        curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729) (Prevx 3.0.5)  "); 
        curl_setopt($ch, CURLOPT_HEADER, 0); 
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
        curl_setopt($ch, CURLOPT_TIMEOUT, 10);
        $cikti = curl_exec($ch);
        curl_close($ch);
        return $cikti;
    }
    örnek kullanımı
    <?
    print adresDownload("http://en.wikipedia.org/wiki/Category:Diseases_and_disorders");
    
    ?>