php code to get Google pagerank

Google, php Add comments
Satisfied with your knowledge? No! then spent 15 mins. every day on PHPCamp.net a knowledge sharing website for PHP community

While reading about SEO ( Search engine optimization ) on various blogs and forums. I found people willing to know the procedure of getting their website’s  Google Pagerank through php. Searching more about it and then following the Google toolbar which give’s the google pagerank, I got the way of getting google page rank of any website through php.

You can download the script here. To use the script type:
http://scriptLocation/scriptName.ext?url=domainName.ext

Note:

A: pagerank is given on a scale of 10.
B: If you get no output then your page is not ranked by Google yet.
C: Zero (0), can be your pagerank.
D: I have no idea, if this is legal to extract this data through automated scripts. Please do not blame me if in case you face a problem.

Well if you liked it,then you can:


Grab my feed

OR

OR

Bookmark for future reference
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • blogmarks
  • description
  • Faves
  • IndianPad
  • Live
  • MySpace
  • Slashdot
  • StumbleUpon
  • Technorati
  • TwitThis
  • LinkedIn
  • Linkter

12 Responses to “php code to get Google pagerank”

  1. php code to get Google pagerank | PHP-Blog.com Says:

    [...] more here: php code to get Google pagerank Related ArticlesBookmarksTags PHP PHP is a computer scripting language. Originally [...]

  2. viralpatel Says:

    Nice article..
    really helpful.. I am trying to re-write this in JSP/Java to port it in my J2EE application.

  3. Aman Says:

    Welcome!
    Well, pls forward the JSP/Java code to me, so that I can put it up on my blog…

  4. vivanno.com::aggregator » Archive » Pagerank PHP Google Says:

    [...]  php code to get Google pagerank () [...]

  5. Alek Says:

    Hi. Good site.

  6. Pagerank PHP Google | Tellaw.org Says:

    [...]  php code to get Google pagerank (0 visite) [...]

  7. Mat Says:

    Thanks! I tried porting this over to Java, but with my limited knowledge of PHP I had a hard time wrapping my head around the variable types. I’d love it if someone would do all the hard work for me and send a copy my way! :)

  8. Aman Says:

    Would have surely helped u! But, I have no idea of JAVA. I would surely try to get it done for you by someone.

  9. Divyaprakash Says:

    Thanks for your information.

  10. SEOsean Says:

    Thanks for the post. Doing that in PHP has been around for some time now I’ve seen other example code elsewhere but I just posted a question on Google’s Webmaster Help to find out what is allowed and what is not. Although I have not got a definitive answer to that, just that its “probably” not something they want you to do. Here is the thread so you can read it http://www.google.com/support/forum/p/Webmasters/thread?tid=3f19044158a7a3ce&hl=en&fid=3f19044158a7a3ce00045fe9a51225ce

    Also I just finished creating an SEO tool on my site that calculates the amount of PageRank from links it will take to get your website up to a specific PageRank. It’s not totally 100% accurate but it’s neat play around with. You can check it out here http://www.seosean.com/seo-tools/pagerank-calculator/

  11. vic Says:

    Hi,

    I just ported the code to Java, it’s just a matter of using the right types. Worked flawlessly right away :) I did it quickly you probably should do a little renaming here and there ;P

    Here it is : http://paste-it.net/public/bd0454f/

  12. Aman Says:

    Hey! thanks for that…
    Hope other people like and find it usefull

Leave a Reply

WP Theme & Icons by N.Design Studio. Indified by IndiBlogger.in.
Entries RSS Comments RSS Log in

Technology Top Blogs Technology Blogs - BlogCatalog Blog Directory Visit blogadda.com to discover Indian blogs blogarama - the blog directory