Este sitio web utiliza cookies para realizar análisis y mediciones de tus visitas. [ Acepto ] [ Más información aquí ].

How to detect a PageRank in PHP

To detect a website's PageRank using PHP, follow this steps:

1. Download this .zip file , extract prclass.php and add it to the folder where the code will be run.

2. In a new PHP file, add this code to detect the PageRank. Replace www.wikipedia.org with the URL you need:

include 'prclass.php';

$pr = new PR();

$pagerank = $pr->get_google_pagerank("http://www.wikipedia.org");

echo "PageRank: " . $pagerank;

Añadir comentario