<?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>Altmint Blog &#187; back links in google</title>
	<atom:link href="http://blog.altmint.com/tag/back-links-in-google/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.altmint.com</link>
	<description></description>
	<lastBuildDate>Mon, 24 Oct 2011 09:11:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to check Link popularity or back links for a domain in php</title>
		<link>http://blog.altmint.com/how-to-check-link-popularity-or-back-links-for-a-domain-in-php</link>
		<comments>http://blog.altmint.com/how-to-check-link-popularity-or-back-links-for-a-domain-in-php#comments</comments>
		<pubDate>Tue, 20 Apr 2010 10:06:04 +0000</pubDate>
		<dc:creator>Kongoti</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[back links]]></category>
		<category><![CDATA[back links in google]]></category>
		<category><![CDATA[back links in yahoo]]></category>
		<category><![CDATA[check back links script in php]]></category>
		<category><![CDATA[link popularity]]></category>
		<category><![CDATA[links popularity in yahoo and google]]></category>

		<guid isPermaLink="false">http://blog.altmint.com/?p=147</guid>
		<description><![CDATA[How to check Link popularity or back links for a given domain in php? Link popularity is a measure of the quantity and quality of other web sites that link to a specific site on the World Wide Web. It is an example of the move by search engines towards off-the-page-criteria to determine quality content. <a href="http://blog.altmint.com/how-to-check-link-popularity-or-back-links-for-a-domain-in-php">Continue Reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><strong>How to check Link popularity or back links for a given domain in php?</strong></p>
<p style="text-align: justify;"><strong>Link popularity</strong> is a measure of the quantity and quality of other web sites that link to a specific site on the World Wide Web. It is an example of the move by search engines towards off-the-page-criteria to determine quality content. In theory, off-the-page-criteria adds the aspect of impartiality to search engine rankings. Link popularity plays an important role in the visibility of a web site among the top of the search results. Indeed, some search engines require at least one or more links coming to a web site, otherwise they will drop it from their index.</p>
<p style="text-align: justify;">Search engines such as Google use a special link analysis system to rank web pages. Citations from other WWW authors help to define a site&#8217;s reputation. The philosophy of link popularity is that important sites will attract many links. Content-poor sites will have difficulty attracting any links. Link popularity assumes that not all incoming links are equal, as an inbound link from a major directory carries more weight than an inbound link from an obscure personal home page. In other words, the quality of incoming links counts more than sheer numbers of them.<sup id="cite_ref-Wiep.net_8-0"><a href="http://en.wikipedia.org/wiki/Link_popularity#cite_note-Wiep.net-8"></a></sup></p>
<p style="text-align: justify;"><span>We can know Link popularity in google and Yahoo for given domain name in PHP. </span></p>
<p style="text-align: justify;"><span>It can be achievd by some simple logic and here is that logic for you.</span></p>
<p style="text-align: justify;"><span>
<pre class="brush: php">&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;?php
// Setting the URL variable
$link = $_POST[&#039;url&#039;];&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;// Google Backlinks
function fetch_google($uri) {
$uri = trim(eregi_replace(&#039;http://&#039;, &#039;&#039;, $uri)); $uri = trim(eregi_replace(&#039;http&#039;, &#039;&#039;, $uri));
$url = &#039;http://www.google.com/search?hl=en&amp;amp;amp;amp;lr=&amp;amp;amp;amp;ie=UTF-8&amp;amp;amp;amp;q=links:&#039;.$uri;
$v = file_get_contents($url);
preg_match(&#039;/of about \&lt;b\&gt;(.*?)\&lt;\/b\&gt;/si&#039;,$v,$r);
return ($r[1]) ? $r[1] : &#039;0&#039;;
}&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;// Yahoo Inlinks
function fetch_yahoo($uri) {
$uri = trim(eregi_replace(&#039;http://&#039;, &#039;&#039;, $uri)); $uri = trim(eregi_replace(&#039;http&#039;, &#039;&#039;, $uri));
$url = &#039;http://siteexplorer.search.yahoo.com/search?p=http://&#039;.$uri.&#039;&amp;amp;amp;amp;bwm=i&amp;amp;amp;amp;bwmf=s&amp;amp;amp;amp;bwmo=&amp;amp;amp;amp;fr2=seo-rd-se&#039;;
$v = file_get_contents($url);&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;preg_match(&#039;/Inlinks \((.*?)\)/si&#039;,$v,$r);
return ($r[1]) ? $r[1] : &#039;0&#039;;
}&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;// Alexa Rating
function fetch_alexa($uri){
$uri = trim(eregi_replace(&#039;http://&#039;, &#039;&#039;, $uri)); $uri = trim(eregi_replace(&#039;http&#039;, &#039;&#039;, $uri));
$url = &#039;http://data.alexa.com/data?cli=10&amp;amp;amp;amp;dat=snbamz&amp;amp;amp;amp;url=&#039; . urlencode($uri);
$v = file_get_contents($url);
preg_match(&#039;/\&lt;popularity url\=&quot;(.*?)&quot; TEXT\=&quot;([0-9]+)&quot;\/\&gt;/si&#039;, $v, $r);
return ($r[2]) ? $r[2] : &#039;0&#039;;
}&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;// Page Header
echo &quot;&lt;h2&gt;Search Engine Popularity&lt;/h2&gt;&quot;;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;// Display Links and Information
if (isset($link)) {
echo &quot;&lt;strong&gt;URL:&lt;/strong&gt; &quot; . $link . &quot;&lt;br /&gt;&quot;;
echo &quot;&lt;strong&gt;Google Backlinks:&lt;/strong&gt; &quot; . fetch_google($link) . &quot;&lt;br /&gt;&quot;;
echo &quot;&lt;strong&gt;Yahoo Backlinks:&lt;/strong&gt; &quot; . fetch_yahoo($link) . &quot;&lt;br /&gt;&quot;;
echo &quot;&lt;strong&gt;Alexa Rating:&lt;/strong&gt; &quot; . fetch_alexa($link) . &quot;&lt;br /&gt;&quot;;
}&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;// Search Form
echo &quot;&lt;br /&gt;
&lt;form action=\&quot;&lt;?=$_SERVER[&#039;PHP_SELF&#039;];?&gt;\&quot; method=\&quot;POST\&quot;&gt;
&lt;input type=\&quot;text\&quot; name=\&quot;url\&quot; /&gt;
&lt;input type=\&quot;submit\&quot; /&gt;
&lt;/form&gt;&quot;;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;?&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span&gt;</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.altmint.com/how-to-check-link-popularity-or-back-links-for-a-domain-in-php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

