时间:2021-07-01 10:21:17 帮助过:31人阅读
你以 url 方式嵌入文件,需要打开 allow_url_include 开关
echo file_get_contents('http://localhost/ceshi/12.php?name=Peter&'.http_build_query($_GET));
13.php改成以下??。
echo file_get_contents('http://localhost/ceshi/12.php?name=Peter&'.http_build_query($_GET));
include 也是可以的,但是php.ini 中allow_url_include 要设置为On
echo file_get_contents('http://localhost/ceshi/12.php?name=Peter&'.http_build_query($_GET));