这样包含没有用,除非是ftp,即使你得到的也是html文件。这个文件的权限只能被读,
用fopen("http://10.13.121.201/try/aaa.php","r")试试。

解决方案 »

  1.   

    但为什么我在为什么我在10.13.121.201的服务器上,
    <?
    include "http://10.141.25.74/try/aaa.php";    //10.141.25.74  是我自己的机器
    ?>
    运行成功!
    我只要只读的权限就可以了。aaa.php放的是全局的函数。
      

  2.   

    这是手册上,应该是可以通过http调用的吧!Example 12-5. include() through HTTP<?php/* This example assumes that www.example.com is configured to parse .php *
     * files and not .txt files. Also, 'Works' here means that the variables *
     * $foo and $bar are available within the included file.                 */// Won't work; file.txt wasn't handled by www.example.com as PHP
    include 'http://www.example.com/file.txt?foo=1&bar=2';// Won't work; looks for a file named 'file.php?foo=1&bar=2' on the
    // local filesystem.
    include 'file.php?foo=1&bar=2';// Works.
    include 'http://www.example.com/file.php?foo=1&bar=2';$foo = 1;
    $bar = 2;
    include 'file.txt';  // Works.
    include 'file.php';  // Works.?>
     
    为什么我的机器上不行?
      

  3.   

    啊,我知道了,谢谢大家!Warning 
    The Windows version of PHP currently does not support accessing remote files via this function, even if allow_url_fopen is enabled. 
     
    原来是这样!FT啊!