Skip to content

Instantly share code, notes, and snippets.

@melvinmt
Created March 1, 2011 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melvinmt/849490 to your computer and use it in GitHub Desktop.
Save melvinmt/849490 to your computer and use it in GitHub Desktop.
<?php
require_once('phpFlickr.php');
$f = new phpFlickr($flickr_api_key, $flickr_api_secret);
$request = $f->photos_getSizes($photo['id']);
// assume that largest size comes last:
$large = $request[count($request)-1];
$medium = $request[count($request)-2];
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment