Php script to search for images and return the url
I have made a crazy (?) thought right now...
Is t开发者_StackOverflowhere any script written in PHP that gets a given keyword and returns a url of a relative image? (from google, yahoo, etc)
If so, may I have an example? And if not, hwo can this be made?
Thanks!!
You can use the Flicker API. phpFlickr seems to be an existing PHP library.
You can try the PHP's CURL functions to do that, just google it and read the PHP manual.
Try this one Demo : http://www.scriptbaba.com/demos/get_images/
http://www.scriptbaba.com/details-php-image-search-api-25.html
精彩评论