PHP Google Wesite Rank Check
PHP
Download (.zip)
<? set_time_limit(0); echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"; echo "<HTML><HEAD><TITLE>Google.com Rank Check</TITLE><META http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\">"; echo "<STYLE type=\"text/css\">"; echo "BODY { font: 12px Verdana; }"; echo "#shit { text-align: right; font: 12px Verdana; float:left; padding:5px; height: 70px; } "; echo ".is { background-color: #ffffff; border-bottom: 1px solid #e1e1e1; border-left: 1px solid gray; border-right: 1px solid #e1e1e1; border-top: 1px solid gray; font-family: Verdana; font-size: 11px; }"; echo "</STYLE>"; if (isset($_POST['word']) && $_POST['word'] != "" && isset($_POST['web']) && $_POST['web'] != "") { extract($_POST); $web = htmlspecialchars($web); while ("1" == "1") { if (!isset($sbor)) $sbor = "0"; else $sbor = $sbor+10; $url = "http://www.google.com/search?q=".urlencode($word)."&hl=en&lr=&start=$sbor&sa=N"; $data = file_get_contents("$url"); $shit = explode("<p class=g>", $data); for ($i=0; $i<=count($shit)-1; $i++) { if (eregi("<br><font color=#008000>", $shit[$i])) { $fuck = explode("<br><font color=#008000>", $shit[$i]); $put = explode("</font><nobr>", $fuck[1]); $string = eregi_replace("<B>", "", $put[0]); $string = eregi_replace("</B>", "", $string); if (eregi($web, $string)) { $result = $sbor+$i; echo "<B>$web</B> is ranked #<B><A href='$url'>$result</A></B> with the search string <B>$word</B> !"; exit; } } if (!eregi("<br>Next</a>", $data)) die("No results!"); } } } else { echo "<form name=\"data\" action=\"?\" method=\"post\">"; echo "<div id=\"shit\">Keyword:<BR>URL:</div>"; echo "<div><input class=\"is\" name=\"word\" size=\"25\"><BR>"; echo "<input class=\"is\" name=\"web\" size=\"25\"><BR>"; echo "<input class=\"is\" name=\"gopost\" type=\"submit\" value=\"Check\"> <input class=\"is\" type=\"reset\" value=\"Clear\">"; echo "</div><BR></form>"; } echo "</BODY></HTML>"; ?>
|