想要将删除图像传输到图像托管站点
我尝试找到一种解决方案来传输图像以使用 php 删除服务器。
例如,我有图像 http://example。 com/image.jpg..并希望将此链接/文件传输到 http://postimage.org或任何其他图像托管服务..如果您有任何 PHP 解决方案请告诉我..
编辑:
传输图像文件后,它会向我显示下载链接。特别适用于http://postimage.org< /a> 网站..
谢谢,
I try to find a solution to transfer image to remove server with php..
For Example i have image http://example.com/image.jpg.. and want to transfer this link/file to http://postimage.org or any other image hosting service.. if you have any solution in PHP Please let me know..
EDIT:
After transfer image file its shows me the download link.. Special for http://postimage.org site..
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
帖子图片具有从 url 上传功能:
http://postimage.org/index.php?um= url
在此处输入您的图像的 url 并提交。
Post image has an upload from url feature:
http://postimage.org/index.php?um=url
Enter the url to your image there and submit.
这是一个非常开放的问题,但我会尽力回答。
如果您想将图片上传到图像托管网站,则需要搜索具有 API。
我建议从 imgur 开始。
只需注册即可免费(有限)访问其 API,并且使用起来非常简单。
请此处阅读相关内容。
它甚至还有一个用 PHP 上传图像的示例:
This is a very open question, but I'll try to answer it.
If you want to upload pictures to a image hosting site, you need to search for one that has an API.
I would recommend imgur for starting.
It has free (limited) access to its API by just registering and it is very simple to use.
Read about it here.
It even has an example for uploading images in PHP: