NameSilo

Internet picture search using PHP

SpaceshipSpaceship
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
•••
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
•••
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
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back