echo '<img src="http://www.gravatar.com/avatar/' . md5($email_address) . '?s=48&d=identicon" width="48" height="48" alt="" />';
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.
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.