当然不行啦,include需要真实存在的文件作为参数,echo.php?$mobile这样的文件是不可能存在的!
php4.3支持url做参数,你可以include("http://loalhost/echo.php?$mobile");被include进来的程序已经成为当前程序的一部分了,并不需要传递什么参数
php4.3支持url做参数,你可以include("http://loalhost/echo.php?$mobile");被include进来的程序已经成为当前程序的一部分了,并不需要传递什么参数
$mobile = "13588888888";
include("echo.php");//echo.php 中直接使用$mobile (或global $mobile)变量名
.........
这样写不行,
试试这样!
$file = file_get_contents( "echo.php?$mobile" );
echo $file;
要写相对路径的./inc_files