Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > Miscellaneous > Lounge

Notices

Reply
 
Thread Tools Search this Thread
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('http://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
Old 10-22-2006, 11:45 AM   #2
Leaping Gnome
Evangelist
Leaping Gnome once ate a cherry pie in a record 7 seconds.Leaping Gnome once ate a cherry pie in a record 7 seconds.Leaping Gnome once ate a cherry pie in a record 7 seconds.Leaping Gnome once ate a cherry pie in a record 7 seconds.Leaping Gnome once ate a cherry pie in a record 7 seconds.Leaping Gnome once ate a cherry pie in a record 7 seconds.Leaping Gnome once ate a cherry pie in a record 7 seconds.Leaping Gnome once ate a cherry pie in a record 7 seconds.Leaping Gnome once ate a cherry pie in a record 7 seconds.Leaping Gnome once ate a cherry pie in a record 7 seconds.Leaping Gnome once ate a cherry pie in a record 7 seconds.
 
Posts: 490
Karma: 1641
Join Date: Oct 2006
Location: Louisville
Device: Sony Reader PRS-500
Well you get 403 forbidden if you place that link in your browser too, so it's a problem with the link.

Check over at webhostingtalk.com, I'm sure someone there has what you are are looking for.
Leaping Gnome is offline   Reply With Quote
Old 10-22-2006, 04:36 PM   #3
tcv
Addict
tcv will become famous soon enoughtcv will become famous soon enoughtcv will become famous soon enoughtcv will become famous soon enoughtcv will become famous soon enoughtcv will become famous soon enough
 
tcv's Avatar
 
Posts: 330
Karma: 596
Join Date: Oct 2006
I read the title as "Bulk Pregnant Checker Script." Odd.
tcv is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google PageRank Checksum Algorithm doctorow Lounge 295 08-03-2011 11:11 AM
Spell checker crutledge Sigil 31 12-29-2010 01:31 PM
Google Toolbar Pagerank Checksum Revealed! Alexander Turcic Lounge 5 02-17-2006 08:09 AM


All times are GMT -4. The time now is 12:23 AM.


MobileRead.com is a privately owned, operated and funded community.