1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to make the Page rank php script work for the URLs having multiple querystrings?

Discussion in 'PHP' started by rajamanickam.a, Nov 20, 2011.

  1. #1
    I am using a php script for showing the Google pagerank in our inboundlink Analysis Tool.

    This php script is showing the PR correctly for most of the URLs. But it is giving error for the urls having multiple querystring parameters (e.g http://qualitypointtech.net/forum/viewtopic.php?f=25&t=870 )

    I would like to make this script work for all the urls. Let me know if you know how to make it work. Note that I have tried lot of options (e.g urlencode) without success. So, just make sure that it is working for you before you suggest any changes or any script.
     
    rajamanickam.a, Nov 20, 2011 IP
  2. ckgni

    ckgni Active Member

    Messages:
    208
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Try using the urlencode() function when sending the URL to the PR checker

    ie.

    
    $link = "http://qualitypointtech.net/forum/viewtopic.php?f=25&t=870";
    $link = urlencode($link);
    
    PHP:
    and then pass $link to the PR check tool
     
    ckgni, Nov 20, 2011 IP
  3. rajamanickam.a

    rajamanickam.a Well-Known Member

    Messages:
    636
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    158
    Digital Goods:
    2
    #3
    I already tried urlencode(). But it didn't solve the issue.
     
    rajamanickam.a, Dec 8, 2011 IP