Location: PHPKode > scripts > guaranix Rank > guaranix-rank/gRankTest.php
<?
#	IMPORTANT!!!
#	BEFORE YOU EXECUTE THIS SCRIPT YOU MUST READ
#	THE README FILE...
#	please bugs to hide@address.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();

?>
Return current item: guaranix Rank