我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

对于某些图像路径,PHP file_get_contents()返回“illegal:d - msg”

I use PHP's file_get_contents() on image paths taken from 'src' attributes in order to pull images from external websites and save them onto my own server. This almost always works. For some reason when I pass the following link in as an argument:

$arg = "http://s1.reutersmedia.net/resources/r/?m=02&d=20131205&t=2&i=817503382"

file_get_contents($arg) 

returns

illegal: d - msg. 

Why is this and how can I successfully get this image onto my server?

近期文章

  • 如何对按已发布链接数投票的用户进行排序
  • 在灯箱弹出窗口打开翻书
  • 关于spring async 灵活配置的问题
  • 关于spring boot注解的使用@Autowired
  • 装NET framework 总是不成功 各种办法都试过了
  • javascript中\斜杠转义字符的疑惑
  • 数据库mysql,MaybatisPlus实现按天或按月查数据这样写能查出来吗?谢谢
  • vs2019配置上的一些小问题
  • 对相同域的cURL请求非常慢
  • 模态窗口中的jquery / php形式
  • mongodb全文搜索否定词
  • 消息在PHP中传递确认
  • Google Maps Marker Clusterer
  • memcache(d)不适用于ubuntu 13.10
  • 如何使用CMYK颜色导出Highcharts?
  • PHP fputcsv()创建一个CSV导入Outlook联系人
  • PHP函数在使用变量时不返回替换的字符串
  • SOAP php非wsdl过程不存在
  • 联系表格电子邮件不会到达目的地
  • 如何使用symfony和apache的路由器

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华