Created
September 13, 2020 23:13
-
-
Save ricardoalcocer/d3db9836c4d463dd4af322e962128a4b to your computer and use it in GitHub Desktop.
Get gravatar from email
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$userMail = '[email protected]'; | |
$imageWidth = '150'; //The image size | |
$imgUrl = 'http://www.gravatar.com/avatar/'.md5($userMail).'fs='.$imageWidth; | |
echo "<img src=\"$imgUrl\">"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment