<?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>Tue, 27 Sep 2011 18:42:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Quang Le</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-2063</link>
		<dc:creator>Quang Le</dc:creator>
		<pubDate>Tue, 27 Sep 2011 18:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-2063</guid>
		<description>Hi Tegan,

This is bcos of &quot;URL file-access is disabled in the server configuration&quot;.

You&#039;d use CURL instead of fopen.

Quang</description>
		<content:encoded><![CDATA[<p>Hi Tegan,</p>
<p>This is bcos of &#8220;URL file-access is disabled in the server configuration&#8221;.</p>
<p>You&#8217;d use CURL instead of fopen.</p>
<p>Quang</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pawan</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-2061</link>
		<dc:creator>Pawan</dc:creator>
		<pubDate>Fri, 23 Sep 2011 11:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-2061</guid>
		<description>Thanks for your suggestion but its not working sir,the error would be looking like this....
Parse error: syntax error, unexpected &#039;=&#039;, expecting &#039;,&#039; or &#039;;&#039;
So please suggest me what changes i have to make .....</description>
		<content:encoded><![CDATA[<p>Thanks for your suggestion but its not working sir,the error would be looking like this&#8230;.<br />
Parse error: syntax error, unexpected &#8216;=&#8217;, expecting &#8216;,&#8217; or &#8216;;&#8217;<br />
So please suggest me what changes i have to make &#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-2053</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Sat, 03 Sep 2011 22:49:26 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-2053</guid>
		<description>Pagination:

foreach($json-&gt;responseData-&gt;cursor-&gt;pages as $pp)
{
echo &#039;&lt;a&gt;start.&#039;&amp;search=&#039;.urlencode($searchterm).&#039;&quot;&gt;&#039;.$pp-&gt;label.&#039;&lt;/a&gt; &#039;;
}</description>
		<content:encoded><![CDATA[<p>Pagination:</p>
<p>foreach($json-&gt;responseData-&gt;cursor-&gt;pages as $pp)<br />
{<br />
echo &#8216;<a>start.&#8217;&amp;search=&#8217;.urlencode($searchterm).&#8217;&#8221;&gt;&#8217;.$pp-&gt;label.&#8217;</a> &#8216;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-2025</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Tue, 12 Jul 2011 16:33:11 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-2025</guid>
		<description>This is a great tutorial.   Has any found out if this is permitted through Google&#039;s terms and conditions?   

I tried some of the suggestions for pagination, but to no avail.   Has anybody implemented it with pagination?</description>
		<content:encoded><![CDATA[<p>This is a great tutorial.   Has any found out if this is permitted through Google&#8217;s terms and conditions?   </p>
<p>I tried some of the suggestions for pagination, but to no avail.   Has anybody implemented it with pagination?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arlon</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1995</link>
		<dc:creator>arlon</dc:creator>
		<pubDate>Tue, 12 Apr 2011 01:49:22 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1995</guid>
		<description>it looks like the php stopped parsing.  Maybe there is a close php ?&gt; tag in there?  

Another Question:
Anyone know how to make this work with the word definition functionality of google ie you can type Definition BigWordToDefine and googles top result is normally the definition of the word but in this example, even if you change the site to search to google, it still does not work like it works on google.  You just get google search results without the top definition result.</description>
		<content:encoded><![CDATA[<p>it looks like the php stopped parsing.  Maybe there is a close php ?&gt; tag in there?  </p>
<p>Another Question:<br />
Anyone know how to make this work with the word definition functionality of google ie you can type Definition BigWordToDefine and googles top result is normally the definition of the word but in this example, even if you change the site to search to google, it still does not work like it works on google.  You just get google search results without the top definition result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1987</link>
		<dc:creator>Ashish</dc:creator>
		<pubDate>Sun, 20 Mar 2011 18:24:24 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1987</guid>
		<description>I am not able to understand the code properly. I know the basics of HTML and PHP. Can you please give me the demo of this code.
I had tried to use it but an error is showing.</description>
		<content:encoded><![CDATA[<p>I am not able to understand the code properly. I know the basics of HTML and PHP. Can you please give me the demo of this code.<br />
I had tried to use it but an error is showing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pushpak</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1964</link>
		<dc:creator>Pushpak</dc:creator>
		<pubDate>Wed, 02 Feb 2011 19:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1964</guid>
		<description>I am getting this thing after hitting the search button...? can somebody help me out with this...?



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>I am getting this thing after hitting the search button&#8230;? can somebody help me out with this&#8230;?</p>
<p>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: Lizzia</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1937</link>
		<dc:creator>Lizzia</dc:creator>
		<pubDate>Fri, 10 Dec 2010 20:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1937</guid>
		<description>Can I get an example of a page that uses this?  I tried viewing the code for the searchbox on this page and it looks different.  That&#039;d be very helpful, as I am new to php :)</description>
		<content:encoded><![CDATA[<p>Can I get an example of a page that uses this?  I tried viewing the code for the searchbox on this page and it looks different.  That&#8217;d be very helpful, as I am new to php <img src='http://dev-tips.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moishe</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1891</link>
		<dc:creator>Moishe</dc:creator>
		<pubDate>Tue, 26 Oct 2010 01:26:04 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1891</guid>
		<description>Thanks a lot for a wonderfull tutorial.
Really helped me a lot in my project.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for a wonderfull tutorial.<br />
Really helped me a lot in my project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yasam phani</title>
		<link>http://dev-tips.com/featured/php-tip-add-custom-google-search-results-to-your-site-with-php#comment-1844</link>
		<dc:creator>yasam phani</dc:creator>
		<pubDate>Tue, 10 Aug 2010 16:34:38 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=96#comment-1844</guid>
		<description>Thanks</description>
		<content:encoded><![CDATA[<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

