<?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: PHP Tip: Add Custom Google Search Results to Your Site with PHP</title>
	<atom:link href="http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php/feed" rel="self" type="application/rss+xml" />
	<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php</link>
	<description>Become a Better Developer, One Tip at a Time.</description>
	<lastBuildDate>Wed, 04 Aug 2010 15:39:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Naveed Jasim</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1832</link>
		<dc:creator>Naveed Jasim</dc:creator>
		<pubDate>Wed, 14 Jul 2010 11:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1832</guid>
		<description>nice work but i need 5 records only and it does not take API key , can you tell me why
thanks</description>
		<content:encoded><![CDATA[<p>nice work but i need 5 records only and it does not take API key , can you tell me why<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mukul</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1825</link>
		<dc:creator>mukul</dc:creator>
		<pubDate>Tue, 06 Jul 2010 09:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1825</guid>
		<description>Hello Brian,

How could I modify the script so that I can search web instead of a site?

thanks in advance</description>
		<content:encoded><![CDATA[<p>Hello Brian,</p>
<p>How could I modify the script so that I can search web instead of a site?</p>
<p>thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: radus</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1810</link>
		<dc:creator>radus</dc:creator>
		<pubDate>Wed, 23 Jun 2010 18:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1810</guid>
		<description>super article, thanks.

I still have a problem: how I can retrieve and process result page cursor in order to show pages like 1, 2, 3...next and use this to retreive next results sets?? any idea??</description>
		<content:encoded><![CDATA[<p>super article, thanks.</p>
<p>I still have a problem: how I can retrieve and process result page cursor in order to show pages like 1, 2, 3&#8230;next and use this to retreive next results sets?? any idea??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manjit Singh</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1793</link>
		<dc:creator>Manjit Singh</dc:creator>
		<pubDate>Fri, 04 Jun 2010 18:38:46 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1793</guid>
		<description>Where is json.phps i am tring to find this where is this class how to do this without it</description>
		<content:encoded><![CDATA[<p>Where is json.phps i am tring to find this where is this class how to do this without it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Script</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1783</link>
		<dc:creator>Script</dc:creator>
		<pubDate>Sun, 23 May 2010 16:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1783</guid>
		<description>nice script thanks</description>
		<content:encoded><![CDATA[<p>nice script thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1753</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Mon, 12 Apr 2010 07:58:49 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1753</guid>
		<description>I found a solution, how to get more than 8 results.

The default URL looks like:

http://ajax.googleapis.com/ajax/services/search/web?rsz=large......

But you have to change it to:
http://ajax.googleapis.com/ajax/services/search/web?rsz=filtered_cse

You can read it here:
http://code.google.com/intl/de-DE/apis/ajaxsearch/documentation/reference.html
(.setResultSetSize(switchTo))</description>
		<content:encoded><![CDATA[<p>I found a solution, how to get more than 8 results.</p>
<p>The default URL looks like:</p>
<p><a href="http://ajax.googleapis.com/ajax/services/search/web?rsz=large....." rel="nofollow">http://ajax.googleapis.com/ajax/services/search/web?rsz=large&#8230;..</a>.</p>
<p>But you have to change it to:<br />
<a href="http://ajax.googleapis.com/ajax/services/search/web?rsz=filtered_cse" rel="nofollow">http://ajax.googleapis.com/ajax/services/search/web?rsz=filtered_cse</a></p>
<p>You can read it here:<br />
<a href="http://code.google.com/intl/de-DE/apis/ajaxsearch/documentation/reference.html" rel="nofollow">http://code.google.com/intl/de-DE/apis/ajaxsearch/documentation/reference.html</a><br />
(.setResultSetSize(switchTo))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinayan</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1744</link>
		<dc:creator>vinayan</dc:creator>
		<pubDate>Tue, 06 Apr 2010 11:47:30 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1744</guid>
		<description>iam newbie in php so tell me to get rid from this error
decode($body); // now $json is an object of Google&#039;s search results and we need to iterate through it. foreach($json-&gt;responseData-&gt;results as $searchresult) { if($searchresult-&gt;GsearchResultClass == &#039;GwebSearch&#039;) { $formattedresults .= &#039;
&#039; . $searchresult-&gt;titleNoFormatting . &#039;

&#039; . $searchresult-&gt;content . &#039;

&#039; . $searchresult-&gt;visibleUrl . &#039;
&#039;; } } $_SESSION[&#039;googleresults&#039;] = $formattedresults; header(&#039;Location: &#039; . $_SERVER[&#039;HTTP_REFERER&#039;]); exit; ?&gt;</description>
		<content:encoded><![CDATA[<p>iam newbie in php so tell me to get rid from this error<br />
decode($body); // now $json is an object of Google&#8217;s search results and we need to iterate through it. foreach($json-&gt;responseData-&gt;results as $searchresult) { if($searchresult-&gt;GsearchResultClass == &#8216;GwebSearch&#8217;) { $formattedresults .= &#8216;<br />
&#8216; . $searchresult-&gt;titleNoFormatting . &#8216;</p>
<p>&#8216; . $searchresult-&gt;content . &#8216;</p>
<p>&#8216; . $searchresult-&gt;visibleUrl . &#8216;<br />
&#8216;; } } $_SESSION['googleresults'] = $formattedresults; header(&#8216;Location: &#8216; . $_SERVER['HTTP_REFERER']); exit; ?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Med</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1734</link>
		<dc:creator>Med</dc:creator>
		<pubDate>Wed, 31 Mar 2010 15:34:49 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1734</guid>
		<description>I couldn&#039;t find these sippets in &quot;Terms of Use&quot;:
http://code.google.com/apis/ajaxsearch/terms.html

Where did you get them from?</description>
		<content:encoded><![CDATA[<p>I couldn&#8217;t find these sippets in &#8220;Terms of Use&#8221;:<br />
<a href="http://code.google.com/apis/ajaxsearch/terms.html" rel="nofollow">http://code.google.com/apis/ajaxsearch/terms.html</a></p>
<p>Where did you get them from?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bp</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1695</link>
		<dc:creator>bp</dc:creator>
		<pubDate>Thu, 04 Mar 2010 15:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1695</guid>
		<description>My search results in only one result. How do I set the expand_mode_open to turn on.

Please help.</description>
		<content:encoded><![CDATA[<p>My search results in only one result. How do I set the expand_mode_open to turn on.</p>
<p>Please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amin</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1687</link>
		<dc:creator>Amin</dc:creator>
		<pubDate>Sat, 27 Feb 2010 18:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1687</guid>
		<description>Thanks a lot, It really helped me to solve the program problem.</description>
		<content:encoded><![CDATA[<p>Thanks a lot, It really helped me to solve the program problem.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
