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 > Backend Development > PHP Tutorial > 我用php上传图片在本地测试没问题,在服务器上报错了,是什么原因?

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

WBOY
Release: 2016-06-06 20:38:57
Original
1014 people have browsed it

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的域名解析

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template