Source for file pagerank.cli.php
Documentation is available at pagerank.cli.php
Google PageRank PHP Command Line Interface (CLI) Script
Requires: Services_PageRank PEAR package
Install: Rename to pr (mv pagerank.cli.php pr) and make executable (chmod 755 pr)
Usage: ./pr <query> (Eg: ./pr example.com)
require ('Services/PageRank.php');
if (isset ($argv[1 ]) && $argv[1 ]) {
if ($pr->getPagerank ()) {
$result = $pr->getPagerank () . '/10';
$result = $e->getMessage ();
echo " PageRank: $result\n";
echo 'Usage: ', $argv[0 ],' <query> (Eg: ',$argv[0 ]," example.com)\n";
Documentation generated on Mon, 11 Mar 2019 15:48:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|