The PHP Code to calculate the checksum value below:
Once you calculated the checksum, you can dynamically find out the PageRank for a page by reading the values returned by the following URL:
http://www.google.com/ search?client=navclient-auto&ch=[checksum here] &features=Rank&q=info:http://www.example.com