News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Web Development Blog:
Search for photos using PHP and the flickr API
December 21, 2009 @ 15:16:31

On the Web Development Blog there's a recent post about connecting your PHP application with the Flickr API to search for photos with the help of a simple class.

We will be using the php function "file_get_contents" to receive data from flickr. The data which we will receive will be a serialized PHP array which means all we need to do is unserialize the array and we will easily be able to use the data returned. As an alternative we can use a cURL function to get the data, for example if the function "file_get_contents" is not allowed on your web host.

They show how to get your API key from the Flickr website and the sample code that you'll need to make a GET request (with file_get_contents) and an example of a loop displaying the response.

2 comments voice your opinion now!
flickr share api connect tutorial


blog comments powered by Disqus

Similar Posts

Ibuildings techPortal: DPC Radio: Keynote - First Class APIs

ProDevTips.com: Ajax, ZF and Smarty feed reader - part 1

Ligaya Turmelle's Blog: SQL Server DNS

IBM developerWorks: Understanding the Zend Framework,Part 4: When there is no feed, Zend_HTTP_Client

PHPImpact Blog: Agile Database Deployment Using Phing


Community Events











Don't see your event here?
Let us know!


application unittest language component facebook security hack introduction composer symfony2 install code podcast hhvm opinion release package series framework example

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework