PHP Google pagerank chart generator


November 3rd, 2005 by paolo


Author: Paolo Ardoino
PageRank relies on the uniquely democratic nature of the web by using its vast link structure as an indicator of an individual page’s value. In essence, Google interprets a link from page A to page B as a vote, by page A, for page B. But, Google looks at more than the sheer volume of votes, or links a page receives; it also analyzes the page that casts the vote. Votes cast by pages that are themselves “important” weigh more heavily and help to make other pages “important”. by Google

PR(A) = (1 – d) + d (PR(T1) / C(T1) + … + PR(Tn) / C(Tn))

PR(A): Pagerank of a page A

d = 0.85

PR(Ti): Pagerank of page Ti which links to A

C(Ti): number of outbound links on page Ti, which has given the link Average Links per Page = 40

PR Start For PR4 For PR5 For PR6 For PR7 For PR8
PR 1 6 2050.5 11278 62030 341163 1876389
PR 2 30 384.45 2115 11631 63968 351823
PR 3 166 69.90 384.49 2115 11631 63968
PR 4 915 12.70 69.88 384.37 2114 11627
PR 5 5033 2.31 12.70 69.88 384.36 2114
PR 6 27681 0.42 2.31 12.70 69.88 384.37
PR 7 152244 0.07 0.42 2.31 12.70 69.89
PR 8 837379 0.01 0.07 0.42 2.31 12.71
PR 9 4605367 0.00 0.01 0.07 0.42 2.31
PR 10 25329516 0.0005 0.003 0.014 0.076 0.42

The following PHP script generates a simple chart that could be usefull to know how many links are needed
to increase pagerank; it takes script taking average links per page as parameter

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Google PageRank chart generator by <strong>Paolo Ardoino</strong>
[paolo@involutive.com]
 
if($_POST["chpral"]) {
$pral = $_POST["pral"];
} else {
$pral = 40;
}
 
$prm = 0.85;
$prlog = 5.5;for($i = 0; $i <= 9; $i++) {
$prstart[$i] = round(pow(5.5, $i+1));
$prend[$i] = round(pow(5.5, $i+1+0.99));
$prmed[$i] = ($prstart[$i] + $prend[$i] / 2) * $prm;
$prmedal[$i] = $prmed[$i] / $pral;
}
?>
<form action="googleprchart.php" method="post">
<table align="center"><tbody>
<tr>
<td>Average Links per Page
<input name="pral" size="3" value="<?=$pral;?>" type="text" />
<input name="chpral" value="Rebuild" type="submit" /></td>
</tr>
</tbody></table>
</form>
<table align="center"><tbody>
<tr>
<td>PR</td>
<td>Start</td>
<td>For PR4</td>
<td>For PR5</td>
<td>For PR6</td>
<td>For PR7</td>
<td>For PR8</td>
</tr>
for($i = 0, $y = 1; $i <= 9; $i++, $y++) {
echo "
<tr>
<td>PR ".$y."</td>
<td>".$prstart[$i]."</td>
<td>".round($prstart[3]/$prmedal[$i], 4)."</td>
<td>".round($prstart[4]/$prmedal[$i], 4)."</td>
<td>".round($prstart[5]/$prmedal[$i], 4)."</td>
<td>".round($prstart[6]/$prmedal[$i], 3)."</td>
<td>".round($prstart[7]/$prmedal[$i], 2)."</td>
</tr>
";
}
?>
</tbody></table>

Posted in Google, search engines and SEO, Web |

del.icio.us - Digg it - Furl - Google - Netscape - StumbleUpon

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.