0

How to search images from diferent websites and display without storing it.

(Problem is how to search and display images like google image search with perticular word entered by user)

2
Contributors
2
Replies
4
Views
7 Years
Discussion Span
Last Post by vizz
0

You can use cURL.
Here's a sample -

<?php

$query = $_GET['query'];

curl_exec(curl_init("http://images.google.com/images?q=" . $query));

This would echo the full page returned by Google on the page where you ran this code.

Can u explain this code how it works?
And is it possible to search images from different websites without using GOOGLE as
" curl_exec(curl_init("http://images.google.com/images?q=" . $query)); ??? "

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.