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) }">

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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:38:571061Durchsuche

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn