jlittlejohn
5/31/2013 - 2:41 PM

PHP: SimpleXML Class

PHP: SimpleXML Class

<?php
  /* Load flickr Public Feed */
  $xml = simplexml_load_file('http://api.flickr.com/services/feeds/photos_public.gne');
  if(is_object($xml)){
    /* Get each entry and echo the content tag */
    foreach($xml->entry as $photo) echo $photo->content;
  }
?>