• 17-01-2008, 16:33:46
    #1
    tasarladigim sayfam icin

    gunluk hal fiyatlarini otomatik olarak yayinlayan bir joomla siteden cekmek istiyorum.
    mumkunmudur bunu yapabilmem. yardimci olacak arkadaslara dua ederim.

    veri cekilecek adres burasi
    sadece sayfa ortasindaki
    sebze meyfe fiyatlari bolumunu cekmek istiyorum
  • 17-01-2008, 19:41:19
    #2
    mümkündür

    <?php
    
    
    $KumlucaBelediyesi=file_get_contents("http://www.kumluca-bld.gov.tr/index.php?option=com_content&task=section&id=8&Itemid=61");
    
    $sweet_boy57=explode('</table><blockquote><div align="center">',$KumlucaBelediyesi);
    
    if ($sweet_boy57[1]) {
    
    $andyou=explode('</table></div></blockquote></blockquote></blockquote>',$sweet_boy57[1]);
    
    
    echo $andyou[0];
    
    
    } else {echo "yanlış oldu bida dene";
    
    }
    
    
    ?>
  • 17-01-2008, 23:36:47
    #3
    Güzel değişkenler Eline sağlık
  • 18-01-2008, 10:18:34
    #4
    Warning: file_get_contents(): URL file-access is disabled in the server configuration in sanirim erisim izni verilmemis dosyaya
  • 18-01-2008, 10:56:02
    #5
    Senin sunucunda sorun var yoksa kod bende çalışıyor.
  • 18-01-2008, 12:03:12
    #6
    @swet bunu kullan

    <?php
    
    $ch = curl_init();
    $timeout = 0; // set to zero for no timeout
    curl_setopt ($ch, CURLOPT_URL, 'http://www.kumluca-bld.gov.tr/index.php?option=com_content&task=section&id=8&Itemid=61');
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    $KumlucaBelediyesi = curl_exec($ch);
    curl_close($ch);
    
    $sweet_boy57=explode('</table><blockquote><div align="center">',$KumlucaBelediyesi);
    
    if ($sweet_boy57[1]) {
    
    $andyou=explode('</table></div></blockquote></blockquote></blockquote>',$sweet_boy57[1]);
    
    
    echo $andyou[0];
    
    
    } else {echo "yanlış oldu bida dene";
    
    }
    
    
    ?>
  • 18-01-2008, 15:50:38
    #7
    UndeRTakeR adlı üyeden alıntı: mesajı görüntüle
    Senin sunucunda sorun var yoksa kod bende çalışıyor.
    benim kodlarimimi caldin yoksa

    andyou sana 2 ile carpilmis rep veriyorum. Allah razi olsun.
    veremiyorum kisa zaman once vermisim. borcum olsun
  • 18-01-2008, 17:07:36
    #8
    Deneme amaçlı çaldım
  • 18-01-2008, 17:45:00
    #9
    N'olur len burda birileri kodlarımı mı sahiplendi