标签: php
有没有办法让PHP从Gravatar网站获取头像?
答案 0 :(得分:1)
$hashemail = md5( strtolower( trim( "MyEmailAddress@example.com " ) ) ); <img src="http://www.gravatar.com/avatar/<?php echo $hashemail; ?>.jpg" />