I need a little help

Discussion in 'Programming' started by joeychgo, Feb 20, 2007.

  1. #1
    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.
     
    joeychgo, Feb 20, 2007 IP
  2. ThomasNederman

    ThomasNederman Peon

    Messages:
    112
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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
     
    ThomasNederman, Feb 21, 2007 IP
  3. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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! :)
     
    picouli, Feb 21, 2007 IP
  4. Aragorn

    Aragorn Peon

    Messages:
    1,491
    Likes Received:
    72
    Best Answers:
    1
    Trophy Points:
    0
    #4
    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
     
    Aragorn, Feb 21, 2007 IP
  5. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You see, the 'ch' parameter in the URL is different - one must be wrong... ;)
     
    picouli, Feb 21, 2007 IP
  6. Aragorn

    Aragorn Peon

    Messages:
    1,491
    Likes Received:
    72
    Best Answers:
    1
    Trophy Points:
    0
    #6
    My script is working. I am getting the page rank as 5.
     
    Aragorn, Feb 21, 2007 IP
  7. joeychgo

    joeychgo Notable Member

    Messages:
    3,368
    Likes Received:
    321
    Best Answers:
    0
    Trophy Points:
    255
    #7
    This is the same script that is running on www.Analysit.net --- the files work there, but not on my domain.
     
    joeychgo, Feb 21, 2007 IP
  8. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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...
     
    picouli, Feb 21, 2007 IP
  9. joeychgo

    joeychgo Notable Member

    Messages:
    3,368
    Likes Received:
    321
    Best Answers:
    0
    Trophy Points:
    255
    #9
    Your over my head there.... Im not a coder
     
    joeychgo, Feb 21, 2007 IP