我在本地用getimagesize很正常,但程序在虚拟主机上就会报错
怎么配置可以使此函数生效,或者有什么替代的具体方法,(我只想抓取到图片的宽度和高度)
Warning: getimagesize() [function.getimagesize]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in
Warning: getimagesize(http://www.abc.com/aa.jpg) [function.getimagesize]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in
------解决方案--------------------
至少需要 php.ini
allow_url_fopen = On
------解决方案--------------------
dns错误
要么是你没配dns要么是你本地环境没配hosts
------解决方案--------------------
楼主是否网络可以连接到远程?