Dev Assignment 

I've uploaded the test in to live server.

Here is the link
http://kodehouse.com/demo/test/

- This works only for google and flicker image searching
- Click the "Search" from left navigation.
- Select the search type and enter the keyword and hit "Search"
- Then it will list down the random 20 images for keyword.
- There is a icon (star) . when you click that  icon related image goes to "favorite"    section.
-  Then go to "My Favourite" section left navigation .It will list down the all favorite images . You can delete image from hitting delete icon and you can add comment clicking comment icon.
- If click on the image it goes to detail view .

Here is the link for API

http://kodehouse.com/demo/test/googleflicker.api.php?service=search&engine=f&tag=puppy&datatype=json

Service  - service which you want to access (I've implemented only for image search)
engine - google (g) / flicker (f)
tag - search keyword
datatype - xml/json (by default is gives the xml response)

Testing

http://kodehouse.com/demo/test/testing/

I used  http://www.simpletest.org/ framework
Here also I implemented test case  only for image searching for API



NOTE - If you want run on your server change the DB settings (path - lib->DB->DB.php)