string(40) "Couldn't resolve host 'upload.qiniu.com'" ["Reqid"]=> NULL ["Details"]=> NULL ["Code"]=> int(0) }"/> string(40) "Couldn't resolve host 'upload.qiniu.com'" ["Reqid"]=> NULL ["Details"]=> NULL ["Code"]=> int(0) }">

Home  >  Article  >  Backend Development  >  我用php上传图片在本地测试没问题,在服务器上报错了,是什么原因?

我用php上传图片在本地测试没问题,在服务器上报错了,是什么原因?

WBOY
WBOYOriginal
2016-06-06 20:38:57982browse

object(Qiniu_Error)#5 (4) { ["Err"]=> string(40) "Couldn't resolve host 'upload.qiniu.com'" ["Reqid"]=> NULL ["Details"]=> NULL ["Code"]=> int(0) }

回复内容:

object(Qiniu_Error)#5 (4) { ["Err"]=> string(40) "Couldn't resolve host 'upload.qiniu.com'" ["Reqid"]=> NULL ["Details"]=> NULL ["Code"]=> int(0) }

服务器 DNS 问题。

绑hosts

1、你是否配置了host
2、接口路径是否写死了,没有随调试环境改变而动态变。

提示说得很清楚了
检查一下upload.qiniu.com的域名解析

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn