<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Get Google Image Search Results With PHP</title>
	<atom:link href="http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/</link>
	<description>A blog about web development, software business, and WordPress</description>
	<lastBuildDate>Wed, 08 Feb 2012 21:10:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: luis</title>
		<link>http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/comment-page-3/#comment-195916</link>
		<dc:creator>luis</dc:creator>
		<pubDate>Wed, 21 Dec 2011 02:22:34 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/#comment-195916</guid>
		<description>acctually not working!!!! please fix it!!!</description>
		<content:encoded><![CDATA[<p>acctually not working!!!! please fix it!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ebbot</title>
		<link>http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/comment-page-3/#comment-188361</link>
		<dc:creator>Ebbot</dc:creator>
		<pubDate>Thu, 06 Oct 2011 20:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/#comment-188361</guid>
		<description>The fixed version obviously have some coding errors.
-while($i1), when $i1 is not defined.
-the curly brackets are mismatched.

Can you please post a version that is working?</description>
		<content:encoded><![CDATA[<p>The fixed version obviously have some coding errors.<br />
-while($i1), when $i1 is not defined.<br />
-the curly brackets are mismatched.</p>
<p>Can you please post a version that is working?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ahmet</title>
		<link>http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/comment-page-3/#comment-170315</link>
		<dc:creator>ahmet</dc:creator>
		<pubDate>Sat, 11 Jun 2011 17:29:27 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/#comment-170315</guid>
		<description>The code returns an empty array without an error. Is that code still valid?</description>
		<content:encoded><![CDATA[<p>The code returns an empty array without an error. Is that code still valid?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flowmymo</title>
		<link>http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/comment-page-3/#comment-170124</link>
		<dc:creator>flowmymo</dc:creator>
		<pubDate>Mon, 06 Jun 2011 14:35:16 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/#comment-170124</guid>
		<description>forgot to mention that the &quot;fixed&quot; version returns the links to the google thumbs not the original image.</description>
		<content:encoded><![CDATA[<p>forgot to mention that the &#8220;fixed&#8221; version returns the links to the google thumbs not the original image.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flowmymo</title>
		<link>http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/comment-page-2/#comment-170123</link>
		<dc:creator>flowmymo</dc:creator>
		<pubDate>Mon, 06 Jun 2011 14:33:02 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/#comment-170123</guid>
		<description>you need the eHttpClient cURL class by 5ubliminal. 
Link:
http://w-shadow.com/files/ecurl.class.phps

What do you want to change?</description>
		<content:encoded><![CDATA[<p>you need the eHttpClient cURL class by 5ubliminal.<br />
Link:<br />
<a href="http://w-shadow.com/files/ecurl.class.phps" rel="nofollow">http://w-shadow.com/files/ecurl.class.phps</a></p>
<p>What do you want to change?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gokul</title>
		<link>http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/comment-page-2/#comment-169813</link>
		<dc:creator>Gokul</dc:creator>
		<pubDate>Fri, 27 May 2011 06:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/#comment-169813</guid>
		<description>what can i do change in this script</description>
		<content:encoded><![CDATA[<p>what can i do change in this script</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gokul</title>
		<link>http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/comment-page-2/#comment-169812</link>
		<dc:creator>Gokul</dc:creator>
		<pubDate>Fri, 27 May 2011 06:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/#comment-169812</guid>
		<description>It displays error Fatal error: Class &#039;eHttpClient&#039; not found</description>
		<content:encoded><![CDATA[<p>It displays error Fatal error: Class &#8216;eHttpClient&#8217; not found</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flowmymo</title>
		<link>http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/comment-page-2/#comment-168816</link>
		<dc:creator>flowmymo</dc:creator>
		<pubDate>Mon, 18 Apr 2011 14:55:40 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/#comment-168816</guid>
		<description>fixed version, but less options:

function googleImageResults($query, $page=1, $safe=&#039;off&#039;, $dc=&quot;images.google.com&quot;){
    $page--;
    $perpage = 21;
    $url=sprintf(&quot;http://%s/images?q=%s&amp;gbv=2&amp;start=%d&amp;hl=en&amp;ie=UTF-8&amp;safe=%s&amp;sa=N&quot;,
        $dc,urlencode($query),$page*$perpage,$safe);
 
    $hc=new eHttpClient();
    $hc-&gt;setReferer(&quot;http://&quot;.$dc.&quot;/&quot;);
    $html=$hc-&gt;get($url);
    $code = $hc-&gt;getInfo(CURLINFO_HTTP_CODE);
    if ($code != &#039;200&#039;) return false;
    $i=0;
    while($i1){
		$image_url_1=explode(&quot;&lt;/a&gt;&quot;,$split[1]);
		$image_url_2=explode(&#039;&quot;&#039;,$image_url_1[0]);
		$height=$image_url_2[2];
		$width=$image_url_2[4];
		$matches[]=array(&quot;http://t$i.gstatic&quot;.$image_url_2[0],$height,$width);
		}
	$i+=1;
	}
    $results=$matches;
    return $results;
}</description>
		<content:encoded><![CDATA[<p>fixed version, but less options:</p>
<p>function googleImageResults($query, $page=1, $safe=&#8217;off&#8217;, $dc=&#8221;images.google.com&#8221;){<br />
    $page&#8211;;<br />
    $perpage = 21;<br />
    $url=sprintf(&#8220;http://%s/images?q=%s&amp;gbv=2&amp;start=%d&amp;hl=en&amp;ie=UTF-8&amp;safe=%s&amp;sa=N&#8221;,<br />
        $dc,urlencode($query),$page*$perpage,$safe);</p>
<p>    $hc=new eHttpClient();<br />
    $hc-&gt;setReferer(&#8220;http://&#8221;.$dc.&#8221;/&#8221;);<br />
    $html=$hc-&gt;get($url);<br />
    $code = $hc-&gt;getInfo(CURLINFO_HTTP_CODE);<br />
    if ($code != &#8217;200&#8242;) return false;<br />
    $i=0;<br />
    while($i1){<br />
		$image_url_1=explode(&#8220;&#8220;,$split[1]);<br />
		$image_url_2=explode(&#8216;&#8221;&#8216;,$image_url_1[0]);<br />
		$height=$image_url_2[2];<br />
		$width=$image_url_2[4];<br />
		$matches[]=array(&#8220;http://t$i.gstatic&#8221;.$image_url_2[0],$height,$width);<br />
		}<br />
	$i+=1;<br />
	}<br />
    $results=$matches;<br />
    return $results;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SZA</title>
		<link>http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/comment-page-2/#comment-164037</link>
		<dc:creator>SZA</dc:creator>
		<pubDate>Wed, 12 Jan 2011 00:57:54 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/#comment-164037</guid>
		<description>this script is not working?</description>
		<content:encoded><![CDATA[<p>this script is not working?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankit Shah</title>
		<link>http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/comment-page-2/#comment-98040</link>
		<dc:creator>Ankit Shah</dc:creator>
		<pubDate>Sat, 02 Oct 2010 06:44:44 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/#comment-98040</guid>
		<description>$matches is not defined i got error &amp; blank array
It returns same
Array ( )</description>
		<content:encoded><![CDATA[<p>$matches is not defined i got error &amp; blank array<br />
It returns same<br />
Array ( )</p>
]]></content:encoded>
	</item>
</channel>
</rss>

