Hi, I have a very small issue, I have downloaded http://freeajaxscripts.net/index.ph...osmsg=Your+rating+has+been+successfully+added and I have uploaded it to my server, I run the script with ebay.com I get the following error. Warning: file_get_contents(http://www.google.com/search?client=navclient-auto&ch=62147383943&features=Rank&q=info:ebay.com) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /home/sites/google-page-rank.biz/public_html/php/rank.class.php on line 29 The Alexa Rank and the Average Back Link Works, but the google does. I will offer a couple of $ if you are able to fix it. Thank You
hi Try this <?php function loadXFile($location) { $fp = fsockopen($location, 80, $errno, $errstr, 30); if (!$fp) { $result = "$errstr ($errno)<br />\n"; } else { $out = "GET / HTTP/1.1\r\n"; $out .= "Host: ".$location."\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); while (!feof($fp)) { $result .= fgets($fp, 128); } fclose($fp); } return $result; } print loadXFile("http://www.google.com/search?client=navclient-auto&ch=62147383943&features=Rank&q=info:ebay.com") ?> Regards Alex