0

In my local webserver, I'm trying to generate the text for pasting to my blog, followed by below question: How to get static image url from flickr URL?

<a href="http://www.flickr.com/photos/53067560@N00/2658147888/" title="Chou fleurs by Nicolas de Fontenay, on Flickr">[<img src="https://i.stack.imgur.com/VC7Ng.jpg" width="500" height="375" alt="Chou fleurs">][1]

I think it's good to use some API function and to designate $variables to:

, but don't know how to code in detail. Ideally, a function

getFlickrImageURLforGrab(name of Set, # of photos)

ex.) getFlickrImageURLforGrab(myset1, 10) returns first 10 photo's URLs in the Set myset1 are displayed. Would you please show a simple php example?

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
grantaka36
  • 277
  • 1
  • 2
  • 14

1 Answers1

1

The answers in the question you link to refer to flickr.photos.getSizes. You also will want to look at the doc for flickr.photosets.getPhotos.

I don't use PHP with Flickr's API, but a search turns up phpFlickr, which might help you with some of the heavy lifting.

David Gorsline
  • 4,933
  • 12
  • 31
  • 36
  • Dear David, I appreciate your quick reply. I'm trying to include that API function (though I don't know how to do in detail, unfortunately) / grantaka36 – grantaka36 May 28 '12 at 01:27