哦,忘记说明了,资源肯定是正确的,不管是http://www.test.com:8080/test.xml还是http://www.test.com/test.xml,都是可以访问的^_^

解决方案 »

  1.   

    可以用fsockopen试一下,不过写起来比 fopen 稍麻烦一点
      

  2.   

    用fsockopen有警告
    Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in XXXX.php on line 255Warning: fsockopen() [function.fsockopen]: unable to connect to http://www.test.com:8080 in XXXX.php on line 255
      

  3.   

    可能是服务器的DNS解析有点问题