I bought a script from a member here. -- Its suppose to provide PR, backlinks and a few other things. But when I run the script on my server, I get an error. Warning: file_get_contents(http://www.google.com/search?client=navclient-auto&ch=6-1952779284200900062&features=Rank&q=info:www.vbulletin-faq.com) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /home/vbfaq/public_html/pr-analyze/php/rank.class.php on line 29 PHP: DEMO: http://www.vbulletin-faq.com/pr-analyze/ Anyone have a clue whats wrong? The script works fine on the they guy I got it from's server -- Ive asked him for help, and he also isnt sure whats wrong.
I have read that google does not want to share page rank, and therefor does not allow acces to this information. This is why you can not see it. There are a few threads about this on the forum, you can read this for exampel http://forums.digitalpoint.com/showthread.php?t=241429 Could also be that you need http:// in front of domain
The 'ch' calculation is broken, so you end up with a wrong number and Google won't allow you get the PageRank. One reason could be that you are on a 64bit server and the script is meant for a 32bit one - or maybe the algo is plain wrong. HTH, cheers!
This is the URL I get with my script search?client=navclient-auto&ch=6703535683&ie=UTF-8&oe=UTF-8&features=Rank&q=info:www.vbulletin-faq.com
This is the same script that is running on www.Analysit.net --- the files work there, but not on my domain.
What do you get if you do a echo PHP_INT_SIZE; PHP: and echo phpversion(); PHP: on the two machines? And what are the O.S. of the two machines? As mentioned above, there are "problems" with bitwise calculations between 32bits machines and 64bits ones, and also between various versions/O.S. of PHP. So your problem might lie there...