PHP Display Gravatar Icon

The Gravatar system is actually pretty basic and only requires that md5 hash of a user's email address to return their photo.
echo '<img src="' . md5($email_address) . '?s=48&d=identicon" width="48" height="48" alt="" />';
Posted by
Snippet Viewed 1918 times.

Share your PHP code snippets:

  • Get some recognition & a link back to your site.
  • Create your own code library.
  • Help your fellow developers, as they have helped you.


Submit | Browse

Most Recent php snippets

Most Viewed