• 26-03-2019, 11:55:48
    #10
    Üyeliği durduruldu
    burakonline95 adlı üyeden alıntı: mesajı görüntüle
    $handle = fopen("http://adres.com/duyuru.txt", "r");
    $icerik = stream_get_contents($handle);
    if ($handle) {
    while (($line = fgets($icerik)) !== false)
    {
    echo $line . "</br>";
    }
    }
    fclose($handle);

    boyle deneyin hocam
    Gene aynı hatayı alıyorum hocam
  • 26-03-2019, 12:40:57
    #11
    Elsauhal adlı üyeden alıntı: mesajı görüntüle
    tedarikçi firmamızda bulunan duyuru.txt var bu duyurular alt alta txt olarak kayıt ediliyor.

    ben bunu kendi websayfamda kayan yazı olarak bütün satırları oradan çekmek istiyorum mümkün mü?
    Urlyi kendine göre değiştir

    <?php
    $txtcek = file_get_contents('http://www.site.com/aaaa.txt');
    echo '<marquee>'.$txtcek.'</marquee>';
    ?>
    Her satır sonu aşağı insin istersen

    <?php
    $txtcek = file_get_contents('http://www.site.com/aaaa.txt');
    echo '<marquee>'.nl2br($txtcek).'</marquee>';
    ?>
  • 26-03-2019, 13:06:53
    #12
    Üyeliği durduruldu
    Djstation adlı üyeden alıntı: mesajı görüntüle
    Urlyi kendine göre değiştir

    <?php
    $txtcek = file_get_contents('http://www.site.com/aaaa.txt');
    echo '<marquee>'.$txtcek.'</marquee>';
    ?>
    Her satır sonu aşağı insin istersen

    <?php
    $txtcek = file_get_contents('http://www.site.com/aaaa.txt');
    echo '<marquee>'.nl2br($txtcek).'</marquee>';
    ?>
    Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in
    Warning: file_get_contents(https://www.xxx.com/duyuru.txt): failed to open stream: Invalid argument in index.php on line 92
  • 26-03-2019, 13:10:35
    #13
    hocam https yerine http yazmayi deneyin sanirim o yuzden cekemiyor. protokol sebebiyle erisemiyor
  • 26-03-2019, 13:10:50
    #14
    Elsauhal adlı üyeden alıntı: mesajı görüntüle
    Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in
    Warning: file_get_contents(https://www.xxx.com/duyuru.txt): failed to open stream: Invalid argument in index.php on line 92
    Php yapilandirmanda sorun var kod da sorun yok host firmana soyle hata aldigin kodu yaz onlar aktif.edecektir ozelligi