NameSilo

Internet picture search using PHP

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

freeflow

Established Member
Impact
13
Does anyone know how to search the internet for pictures with PHP and then show them on a website. The pictures would have to be smaller so they can be viewed on a mobile phone. I have seen this done at m.photobucket/com. Thanks for your help.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
One thing you could do is use the cURL extension to fetch results from google images for example. Then you parse the HTML to extract the URL information for thumbnails. Perhaps you have other sources in mind ?
 
0
Close
Thanks for your reply sdsinc! I used the script below to test it. How can I list only pictures on from the search result? Is it legal to do this, since I am using some else’s pictures in my website? Can I use this method to integrate a parking page in my website.

PHP:
<?php    $curl_handle=curl_init();  curl_setopt($curl_handle,CURLOPT_URL,'http://alltheweb.com/search?advanced=1&cat=img&cs=iso88591&q=surfing&itag=crv&if%5B%5D=jpg&it%5B%5D=col&ibt=all&nooc=on');  curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);  curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);  $buffer = curl_exec($curl_handle);  curl_close($curl_handle);    if (empty($buffer))  {      print "Sorry, example.com are a bunch of poopy-heads.<p>";  }  else  {      print $buffer;  }  ?>
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back