问题描述
php 有一种简单的方法,一种简单的脚本或URL操作来为与电子邮件相对应的 gravatar 图片建立URL?
There is a simple way with php, a simple script or URL manipulation to build a URL for the gravatar image corresponding to an email?
Ex. http://gravatar.com/avatars/[email protected]
,这将返回jpeg或png图像.
Ex. http://gravatar.com/avatars/[email protected]
and this return a jpeg or png image.
如果没有像示例一样的简单方法,那么您知道最简单的方法来解析与电子邮件相对应的gravatar的URL吗?谢谢
If there is no simple way like the example, what is the easiest way you know to resolve a url of the gravatar corresponding to an email?. Thanks
推荐答案
您可以在其实现站点上找到带有PHP代码的示例脚本: http://en.gravatar.com/site/implement/php
You can find a sample script with PHP code on their implementation site: http://en.gravatar.com/site/implement/php
这篇关于如何从给定的电子邮件构建GRAVATAR图像的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!