ti ringrazio.
Ma una cosa di questo tipo?
codice:
($type > 0) ?
$url = "http://api.flickr.com/services/feeds/photoset.gne?set=".$type."&nsid=".$id."&lang=it-it&format=atom" :
$url = "http://api.flickr.com/services/feeds/photos_public.gne?id=".$id."&lang=it-it&format=atom";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
$error = curl_errno($ch);
curl_close($ch);
$xml = simplexml_load_file($data) or die ("Unable to load XML file");
$flickr = Array();
foreach( $xml->entry as $row ) {
array_push( $flickr, $first . "[img]" . $row->link[1][[/img]" . $after . "\n" );
}