PHP新手请教:getimagesize不能获取远程图片信息!??急
各位前辈,我在本地用getimagesize很正常,但程序在虚拟主机上就会报错,请问有经验指点一下!
[26-Oct-2012 12:27:07] PHP Warning: getimagesize() [<a href='function.getimagesize'>function.getimagesize</a>]: php_network_getaddresses: gethostbyname failed. errno=2 in D:\freehost\bignippleboy\web\bignippleboy\wp-content\plugins\wp-img\wp-resize.php on line 7
[26-Oct-2012 12:27:07] PHP Warning: getimagesize(http://m1.img.libdd.com/farm5/2012/1007/20/C8424A3B37D62296C6F03590A38FB038E3EF04218A0A_750_1128.jpg) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: php_network_getaddresses: gethostbyname failed. errno=2 in D:\freehost\bignippleboy\web\bignippleboy\wp-content\plugins\wp-img\wp-resize.php on line 7
[26-Oct-2012 12:27:07] PHP Warning: Division by zero in D:\freehost\bignippleboy\web\bignippleboy\wp-content\plugins\wp-img\wp-resize.php on line 29
[26-Oct-2012 12:27:07] PHP Warning: imagecreatetruecolor() [<a href='function.imagecreatetruecolor'>function.imagecreatetruecolor</a>]: Invalid image dimensions in D:\freehost\bignippleboy\web\bignippleboy\wp-content\plugins\wp-img\wp-resize.php on line 30
[26-Oct-2012 12:27:07] PHP Warning: imagecopyresampled(): supplied argument is not a valid Image resource in D:\freehost\bignippleboy\web\bignippleboy\wp-content\plugins\wp-img\wp-resize.php on line 31
[26-Oct-2012 12:27:07] PHP Warning: imagejpeg(): supplied argument is not a valid Image resource in D:\freehost\bignippleboy\web\bignippleboy\wp-content\plugins\wp-img\wp-resize.php on line 33
[26-Oct-2012 12:27:07] PHP Warning: imagedestroy(): supplied argument is not a valid Image resource in D:\freehost\bignippleboy\web\bignippleboy\wp-content\plugins\wp-img\wp-resize.php on line 34