PHP Classes

File: gRankTest.php

Recommend this page to a friend!
  Classes of Cesar D. Rodas   guaranix Rank   gRankTest.php   Download  
File: gRankTest.php
Role: Example script
Content type: text/plain
Description: An Example... :D
Class: guaranix Rank
Implementation of the Google page rank algorithm
Author: By
Last change: Another recomantions
Date: 17 years ago
Size: 678 bytes
 

Contents

Class file image Download
<?
# IMPORTANT!!!
# BEFORE YOU EXECUTE THIS SCRIPT YOU MUST READ
# THE README FILE...
# please bugs to saddor@gmail.com :D
# ANOTHER RECOMENDATIO IS NOT TU RUN LIKE A CGI OR APACHE MODULE
# BECAUSE THE CALCULATION TAKE A LONG TIME (FOR 1.000.000 OF PAGES 2 HOURS)
# SO MY RECOMANDATION IS TO RUN IN CONSOLE IN LINUX, UNIX OR OTHER OS.
# php /path/to/grank/gRankTest.php
include "gRank.php";
include
"mysql.php";
$test = new gRank;

ini_set("memory_limit","64M");

$test->mysql = mysql_connect("","root","") or die(mysql_error());
mysql_select_db("craw") or die(mysql_error($test->mysql));
$test->dump = 0.85;
$test->sql_limit = 2000;
$test->calculate();

?>