wwwZiranbula adlı üyeden alıntı: mesajı görüntüle
yok üstad o hiç çalışmadı. Localde ve VPS de çalışan kod aşağıda. Çoğu hostta çalışmıyor. host kaynaklı olabilir belki ama kodlarda hata yok, çalışmaması ilginç.

$dosya1=file_get_contents("link.txt");
$dosya2=explode("rn",$dosya1);

function GetMetodu($url) {
    $ch = curl_init();
    curl_setopt($ch,CURLOPT_URL,$url);
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
 // curl_setopt($ch,CURLOPT_HEADER, false);
    
    $output=curl_exec($ch);
    curl_close($ch);
    return $output;
}

$git = GetMetodu($dosya2[0]);
sebebi şu olabilir; bir metin dosyasında alt satıra geçilirke unix ve windows'da farklı EOL kullanılır.
n =unix/linux/macos
rn = windows
explode fonksiyonu bu şekilde düzenlerseniz sorun çözülebilir.