PHP Classes
Icontem

File: gRankTest.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Cesar D. Rodas  >  guaranix Rank  >  gRankTest.php  
File: gRankTest.php
Role: Example script
Content type: text/plain
Description: An Example... :D
Class: guaranix Rank
Implementation of the Google page rank algorithm
 

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();

?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products