Getting a Gravatar with PHP

Getting a Gravatar with PHP

Getting a Gravatar icon for a specific person is actually harder than it seems.  Even if you know their account name, which is simply the e-mail address they signed up with.  Typically a developer doesn’t know that because he’s making an app to be used by anyone, not just one person.  This uncertainty is  typical.  What is unusual is to need to take that information and then encrypt in with a MD5 hash and then use it.

There are several methods out there, but they most of them seem pretty complicated.  So I though it might help others to show the simple method I use.
Because we all like simple, right?

Check it out

Submit a Comment

Your email address will not be published. Required fields are marked *

(Spamcheck Enabled)