Help with simplexml

Discussion in 'PHP' started by PinoyIto, Nov 5, 2007.

  1. #1
    PinoyIto, Nov 5, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    
    $url = 'http://api.flickr.com/services/feeds/photos_public.gne?tags=Ligabue';
    $xml = simplexml_load_file($url);
    
    foreach ($xml->entry AS $entry)
    {
    	echo '<img src="', $entry->link[2]['href'], '" /><br />', "\n";
    }
    
    PHP:
     
    nico_swd, Nov 6, 2007 IP