[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 02-15-2008, 01:10 PM   #1 (permalink)
NamePros Member
 
freeflow's Avatar
 
Join Date: Dec 2006
Posts: 136
12.00 NP$ (Donate)

freeflow is on a distinguished road


Help! Internet picture search using PHP

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.
freeflow is online now  
Old 02-15-2008, 01:34 PM   #2 (permalink)
Domains my Dominion
 
sdsinc's Avatar
 
Join Date: Aug 2005
Location: Web 1.0
Posts: 6,284
1,095.94 NP$ (Donate)

sdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond repute

Third World Education Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Animal Rescue Animal Cruelty AIDS/HIV Animal Rescue Wildlife Breast Cancer
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 ?
__________________
Buy now - MassDeveloper.com $500
sdsinc is offline  
Old 02-15-2008, 03:08 PM   #3 (permalink)
NamePros Member
 
freeflow's Avatar
 
Join Date: Dec 2006
Posts: 136
12.00 NP$ (Donate)

freeflow is on a distinguished road


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 Code:
<?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;  }  ?>
freeflow is online now  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 03:32 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85