<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Developer Day &#187; google</title>
	<atom:link href="http://www.thedeveloperday.com/tag/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thedeveloperday.com</link>
	<description>Staying Curious</description>
	<lastBuildDate>Fri, 03 Feb 2012 12:03:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Google PageRank PHP check on Linux</title>
		<link>http://www.thedeveloperday.com/google-page-rank-check-php/</link>
		<comments>http://www.thedeveloperday.com/google-page-rank-check-php/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 09:44:35 +0000</pubDate>
		<dc:creator>Žilvinas Šaltys</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[pagerank]]></category>

		<guid isPermaLink="false">http://www.thedeveloperday.com/google-page-rank-check-php/</guid>
		<description><![CDATA[In my previous blog post I wrote that me and my friend probably developed a first working google page rank check php implementation on linux. Seems I was wrong. Jan Bogutzki has an implementation on his functions-online.com website that also works on linux. He sent me his version of implementation and I must admit it looks cleaner [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous blog post I wrote that me and my friend probably developed a first working google page rank check php implementation on linux. Seems I was wrong. <a href="http://www.functions-online.com/en/" title="PHP functions online">Jan Bogutzki</a> has an implementation on his functions-online.com website that also works on linux. He sent me his version of implementation and I must admit it looks cleaner and more simple than ours. You can <a href="http://www.thedeveloperday.com/uploads/gprcheck.rar" title="google page rank check php implementation">download the copy</a> he sent me if you are after a better approach.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedeveloperday.com/google-page-rank-check-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP Google Page Rank Class Working on Linux</title>
		<link>http://www.thedeveloperday.com/php-google-pagerank-class-implementation/</link>
		<comments>http://www.thedeveloperday.com/php-google-pagerank-class-implementation/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 14:48:45 +0000</pubDate>
		<dc:creator>Žilvinas Šaltys</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[pagerank]]></category>

		<guid isPermaLink="false">http://www.thedeveloperday.com/php-google-pagerank-class-implementation/</guid>
		<description><![CDATA[If you found this blog post on google while searching for a php google page rank class implementation that works on non windows machines then it is your lucky day! You found it! Congratulations! To my knowledge this is the first available php google page rank retrieval implementation that works on any platform. We have [...]]]></description>
			<content:encoded><![CDATA[<p>If you found this blog post on <a href="http://www.google.com" title="Google search engine">google</a> while searching for a php google <a href="http://en.wikipedia.org/wiki/PageRank" title="PageRank">page rank</a> class implementation that works on non windows machines then it is your lucky day! You found it! Congratulations!</p>
<p>To my knowledge this is the first available php google page rank retrieval implementation that works on any platform. We have spent hours searching for such a thing online but we couldn&#8217;t find it. There are some php google pagerank tools online, they all work, but they are all limited to windows machines.</p>
<p>Why is so you might ask? Well originally the google pagerank retrieval algorigthm is not public. But google made a browser plugin that was able to calculate the google pagerank for any website you visit. So some freaky geeks dissasembled that plugin and got their hands on the google page rank calculation implementation.  Then this implementation was ported to various languages such as Javascript, PHP. The google page rank implementation is sort of protected by calculating a &#8220;unique&#8221; hash of the given URL. And here the MAGIC begins.</p>
<p>To calculate this hash the algorithm overflows 32bit integers on XOR operations. Aaaand.. 32bit XOR overflows work quite differently on windows and linux in PHP! If you overflow a 32bit integer on windows it just truncates the result to 32 left most bits and returns a new integer. SMART! And on linux XOR overflow just returns the MAX INTEGER value. What did we do? Oh.. We created a simple class to simulate windows 32bit XOR operations overflow using the PHP gmp extension. Tadam! We have also cleaned up the code, documented and made it look shiny <img src='http://www.thedeveloperday.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>You can download <a href="http://www.thedeveloperday.com/uploads/GooglePageRank.php.zip" title="PHP Google Page Rank Class Implementation">PHP Google Pagerank Class</a> and use it at your own will. I hope this will help you. If it did just leave a comment and say thanks because we are such nice guys to help you out <img src='http://www.thedeveloperday.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>To use the class try:</p>
<p><code>require_once("GooglePageRank.php");<br />
echo GooglePageRank::get("http://www.yahoo.com");<br />
</code></p>
<p>Happy Programmers Day!</p>
<p>p.s  <strong>Google™ search engine</strong> and <strong>PageRank™ algorithm</strong> are the <strong>trademarks of Google Inc.</strong></p>
<p><strong>Update:</strong> PageRank class relies on the GMP extension which is not always enabled by default. On Linux Ubuntu it comes as a separate package php5-gmp.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedeveloperday.com/php-google-pagerank-class-implementation/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

