Location: PHPKode > scripts > Google Pagerank Script > index.php
<?PHP
	include_once("google-pagerank.php");
	//Create Object
	
	$url = "http://www.yahoo.com";
	$width = "200";
	$method = "css"; //image or css
	$image_location = "images/";
	
	$url = isset($_GET['url']) ? $_GET['url'] : $url;
	$width = isset($_GET['width']) ? $_GET['width'] : $width;
	$method = isset($_GET['method']) ? $_GET['method'] : $method;
	$image_location = isset($_GET['image_location']) ? $_GET['image_location'] : $image_location;
	
	
	//Css methos
	$obj = new pr($url,$method,$width,$image_location);
	echo "<p>".$obj->pagerank()."</p>";	
	
	//Normal Method
	$obj = new pr($url,'normal',50,$image_location);
	echo "<p>".$obj->pagerank()."</p>";	
	
	
	//Image methos
	echo "<p><img src='img.php' /></p>";
	
	
	
?>
Return current item: Google Pagerank Script