/ Published in: PHP
With increasing of popularity of WordPress script, Gravatars have become a really quite popular. Now you may easy integrate them into your own script as they provide a very easy to use API.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function show_my_gravatar($email, $size, $default, $rating) { $output = '<img src="http://www.gravatar.com/avatar.php'.$params.'" width="'.$size.'px" height="'.$size.'px" />'; echo $output; } ?>
URL: http://www.apphp.com/index.php?snippet=php-using-gravatars-in-your-script