如何在php中上传并显示头像?

发布于 2024-07-22 19:34:16 字数 77 浏览 4 评论 0原文

好的,我想用我的用户 reg 加载头像,以便他们可以上传并制作个人资料页面,我有用户 reg 和所有内容,并且我在 php 中使用平面文件?

Ok i want to load a Avatar with my users regso they can upload and make a profile page i have user reg and everything and im using a flat file in php?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

心不设防 2024-07-29 19:34:16

您应该考虑将现有的头像服务(例如 Gravatar)集成到您的应用程序中。 它最终可能会为您和您的用户节省大量时间。 来自 Gravatar 网站:

头像,或者说全球公认的头像,是一个很简单的图像,当你做事时,它会跟随你从一个网站到另一个网站,出现在你的名字旁边。 头像有助于识别您在博客和网络论坛上发布的帖子,那么为什么不在任何网站上呢?

You should consider integrating an existing avatar service such as Gravatar into your application. It might end up saving you and your users a bundle of time. From the Gravatar website:

A gravatar, or globally recognized avatar, is quite simply an image that follows you from site to site appearing beside your name when you do things. Avatars help identify your posts on blogs and web forums, so why not on any site?

鹊巢 2024-07-29 19:34:16

只需像上传任何照片一样对待头像上传即可。 创建头像/图像上传表单,将图像上传到个人资料页面中的服务器。

Just treat the avatar upload like any photo upload. Create an avatar/image upload form to upload the image to your server in the profile page.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文