people_findByEmail($flickr_id); $photos = $client->people_getPublicPhotos($user_nsid, 6, 1); } catch (PAException $e) { if ($e->code != REMOTE_ERROR) throw $e; // a flickr error occurred - we ignore it and pretend there are no photos } } if (!count($photos)) { $output .= "
No photos available
"; } else { $output .= '
'; $i = 0; foreach ($photos as $photo) { if (++$i > 6) break; // show max 6 pictures $output .= '
'; } $output .= '
'; } print $output; ?>