Image Search

Started on the old forum in October 2012 · view the original in the archive · old links redirect here

#image-search #search-images

14 replies · 2,237 views · started 14 years ago · 1 min read

6 participants
softwarefreak Senior · 349 posts #1

Hi. here is a Image search script powered by Google search API (Since I don't like making grabbers anymore 😀)

You can see a demo here : Image Search

It's a zero config script, so you just need to take the pain of uploading it in your site

Server Requirement: PHP with cURL & GD support (available in most free/paid hosts)

http://code.google.com/p/image-search-engine/

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

irfiii Developer · 249 posts #2

Nice share Bro thanks for uploading.. Is it legal?

i mean it grab pics with api or grab directly

Added after 2 minutes:

ohhh i think it use google api as u mention in ur post?

Free Web Hosting @HostersPoint.com php Hosting with Web Builder

Buy - Sell ADs ADMOLA ADs Network Monetize Your Site Traffic

softwarefreak Senior · 349 posts #3

@irfiiiii, yup brother 200% legal 👍

You can see the raw json file here, If you open this url https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=flowers

BTW, grabbing google image search won't let you show results for adult images, but with the API you can 😊

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

cyberone Newbie · 4 posts #4

Hello, brother.... Its not work on hostgator... if the image clicked it shows 404 not found

softwarefreak Senior · 349 posts #5

cyberone wrote: Hello, brother.... Its not work on hostgator... if the image clicked it shows 404 not found

Sorry, I left a bug in my localhost,

change this line in resize.php

$save_as = 'images/' . basename(urlencode($url));

To

$save_as = 'images/' . urlencode(basename($url));

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

razib Developer · 132 posts #6

thank you

many thanks for sharing the script

it is not working on hostgator but working properly on godaddy!!!

on hostgator its sowing something like


Forbidden

You don't have permission to access /images/tweak.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

🦸 Buying mobile traffic, PM me with your traffic details

softwarefreak Senior · 349 posts #9

getwapid wrote: each search only found 8 pages can not open the page to 9 look this http://musicoxplore.info/gs/index.php?q=akon&safe=off&size=medium&type=&p=8

please be fixed so that the search can be much more http://musicoxplore.info/gs/index.php?q=akon&safe=off&size=medium&type=&p=8

Look wat's written in GS.class.php

	/**
	 * Note: You should include the userip parameter,
	 * which supplies the IP address of the end-user who made the request
	 * and validates that you are not making automated requests in violation of the Terms of Service.
	 * https://developers.google.com/image-search/terms.html
	 */
	/**
	 * Note: The Image Searcher supports a maximum of 8 result pages.
	 * When combined with subsequent requests, a maximum total of 64 results are available.
	 * It is not possible to request more than 64 results.
	 */

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

razib Developer · 132 posts #10

softwarefreak wrote: razib, chmod (change mode) the file to 777

i have tried it, still not working 🙁

🦸 Buying mobile traffic, PM me with your traffic details

softwarefreak Senior · 349 posts #11

razib wrote: i have tried it, still not working :(

Can you provide the url where you're having that problem 🤷

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

cyberone Newbie · 4 posts #12

softwarefreak wrote: Can you provide the url where you're having that problem 🤷

yeah its not work well on hostgator, because of some security issues on hostgator server. folder or file if chmod to 777 is result to 403 forbidden. Other issues is if your grabber having some query to another sites it will not work its like http;//yourdomain.com/image/tweak.php?url=http;//anotherdomain.com/file/image.gif it will get result 404 not found.

softwarefreak Senior · 349 posts #14

Just make 2 changes for the hostgator problem

  1. html.tpl.php line 4

From

<?php printf('tweak.php?u=%s&h=%d&w=%d', urlencode($result['url']), $result['height'], $result['width']); ?>

To

<?php printf('tweak.php?u=%s&h=%d&w=%d', base64_encode($result['url']), $result['height'], $result['width']); ?>
  1. tweak.php line 4

From

$url = ($_GET['u']);

To

$url = base64_decode($_GET['u']);

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

razib Developer · 132 posts #15

yes its working perfectly now

softwarefreak wrote: Just make 2 changes for the hostgator problem

  1. html.tpl.php line 4

From

<?php printf('tweak.php?u=%s&h=%d&w=%d', urlencode($result['url']), $result['height'], $result['width']); ?>

To

<?php printf('tweak.php?u=%s&h=%d&w=%d', base64_encode($result['url']), $result['height'], $result['width']); ?>
  1. tweak.php line 4

From

$url = ($_GET['u']);

To

$url = base64_decode($_GET['u']);

🦸 Buying mobile traffic, PM me with your traffic details

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close