View Single Post
Old 10-22-2006, 04:09 AM   #1
SNaRe
Junior Member
SNaRe began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2006
Bulk Pagerank Checker Script?

I need a bulk pagerank checker which reads from txt per a line and it checks. I coded one but i have a problem that i couldn't solve.

Code:
$fd = fopen ("lf.txt", "r");
$i=0;
while (!feof ($fd))
{
   $buffer = fgets($fd);
   $lines[] = $buffer;
$i++;
}
fclose($fd);
for($k=0;$k<$i;$k++){
echo $lines[$k];
echo getPR("$lines[$k]");
echo "<br>";
}
I'm not a good coder. I'm maybe newbie. This code only reads data into array then checks.

getPR calculates pagerank. This function works with single query. When i try this getPR('https://www.mobileread.com"); i get right result.
But with my code when i try to execute script i got this error.
Code:
Warning: file_get_contents(http://toolbarqueries.google.com/search?client=navclient-auto&ch=63046330079&ie=UTF-8&oe=UTF-8&features=Rank&q=info:www.google.com ) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in C:\Program Files\xampp\htdocs\pr.php on line 168
I couldn't solve this problem. I hope someone can help me
SNaRe is offline   Reply With Quote