• 25-04-2020, 15:31:16
    #1
    Merhabalar, file_get_contents ile bir siteden veri çekmeye kalkıştığımda bu problemi aldım.
    Warning: file_get_contents(https://***.com/*.php): failed to open stream: Connection timed out in /home/***/public_html/test.php on line 2

    Aynı kodu free hosting firmasında denedim ve çalıştı sorunu bir türlü çözemedim yardımcı olabilirseniz sevinirim.

    Php kodu :
    <?php
    $liste = json_decode(file_get_contents("[I]https://***.com/*.php[/I]"), true);
    echo sprintf("<pre>%s</pre>", print_r($liste, true));
    ?>
  • 25-04-2020, 15:39:30
    #2
    file_get_contents senin sunucuda aktifmi *?
  • 25-04-2020, 15:42:30
    #3
    Wraith adlı üyeden alıntı: mesajı görüntüle
    file_get_contents senin sunucuda aktifmi *?
    Evet aktif başka dosyayı çekebiliyor ama istediğim json dosyasını bir türlü çekemiyor
  • 25-04-2020, 15:46:10
    #4
    hocam o jsonu başka sunucuda denedin cekmedi sadece sende cekmiyor enteresan bunu sen hosting firman ile danış ve şöle bişi var
    aynı yerden başka şeyler cekmeye calıs belki senin sunucunu yani ip block etmişlerdir.