• 05-10-2010, 13:56:00
    #1
    Bir php dosyasında tanımlanmış bir xml dosyası var

    <entry id="974565" runtime="222" title="deneme" href="74565/974565.flv" linkhref="http://deneme.com/974565/" defaultscreenshothref="http://ddeneme/com974565/1.jpg" randvideolink="/rvideo.php" defaulthumbnailhref="http://deneme.com/2.jpg"/>
    Php dosyasına girdiğimde bu çıkıyor. Ben sadece burdaki href="" kısmını çekmek istiyorum bir türlü başaramadım.Lütfen yardımcı olurmusunuz..
  • 05-10-2010, 14:15:08
    #2
    $content = file_get_contents('dosya.php');
    preg_match_all('~href="([^"]*)"~si', $content, $matches);
    
    foreach($matches as $m) {
      echo $m, '<br />';
    }
  • 05-10-2010, 16:37:08
    #3
    Konu linki : https://www.r10.net/php/529255-simple...h-sorgusu.html

    attributes()->href diyeceksin.