Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Hamed Afshar  >  Rank Checker  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: sample usage
Class: Rank Checker
Find the rank of a site in Google keyword searches
Author: By
Last change:
Date: 3 years ago
Size: 335 bytes
 

Contents

Class file image Download
<?php
include("RankChecker.class.php");
$RankChecker=new RankChecker(1,5);
$result=$RankChecker->find("phpclasses.org","phpclass");
if (
$result!==false)
{
    echo 
"Your website is found at page number  ".$result["page"].".";
    echo 
"<br />Visit here: <a href='".$result["url"]."'>".$result["url"]."</a>";
}
else
{
    echo 
"Not found!";
}
?>