如何从给定的电子邮件构建GRAVATAR图像的URL [英] How to build a url of a GRAVATAR image from a given email

查看:76
本文介绍了如何从给定的电子邮件构建GRAVATAR图像的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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/avatar.php?email=myemail@myserver.com,这将返回jpeg或png图像.

Ex. http://gravatar.com/avatars/avatar.php?email=myemail@myserver.com 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代码的示例脚本:

You can find a sample script with PHP code on their implementation site: http://en.gravatar.com/site/implement/php

这篇关于如何从给定的电子邮件构建GRAVATAR图像的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆