当然不行啦,include需要真实存在的文件作为参数,echo.php?$mobile这样的文件是不可能存在的!
php4.3支持url做参数,你可以include("http://loalhost/echo.php?$mobile");被include进来的程序已经成为当前程序的一部分了,并不需要传递什么参数

解决方案 »

  1.   

    .......
    $mobile = "13588888888";
    include("echo.php");//echo.php 中直接使用$mobile (或global $mobile)变量名
    .........
      

  2.   

    include("echo.php?$mobile");
    这样写不行,
    试试这样!
    $file = file_get_contents( "echo.php?$mobile" );
    echo $file;
    要写相对路径的./inc_files
      

  3.   

    请问: 我有1个函数  但在2个页面(A,B里) 我该怎么调用?从A页面调用B页面的函数。