为什么file()可以远程读入一个html文件,然后用join()拟和以后,可以用echo原样输出
而不能xml文件去不能原样输出呢....哪为经验丰富,讲讲 吧

解决方案 »

  1.   

    具体怎么用呢
    是像下面这样吗
    <?php
    $result=file_get_contents("http://www......./abc.xml");
    echo $result;
    ?>
    我试了一下好象不行啊
    具体file_get_contents()怎么用呢(呵呵 我刚开始学php,教教我吧)
      

  2.   

    string file_get_contents ( string filename [, int use_include_path [, resource context]] )
    可以
    $result = file_get_contents("http://www.php.net");
    echo $result;
      

  3.   

    <?php
    $result=file_get_contents("http://www......./abc.xml");
    print_r($result);
    ?>
      

  4.   

    输出的时候要发送 Content-Type 头...信誉值 真低....