For example, bb.newmiracle.cn and B. php? How should I write the same code as ab2 and dd3, for example, bb.newmiracle.cn? how can I access B. php? How should I write code like AB = 2 & dd = 3?
13. php
Include 'http: // localhost/ceshi/12.php? Name = Peter ';
?>
12. php
Running 13. php is blank ..
Reply to discussion (solution)
You need to enable the allow_url_include switch when embedding a file as a url.
echo file_get_contents('http://localhost/ceshi/12.php?name=Peter&'.http_build_query($_GET));
13. change php to the following ??.
echo file_get_contents('http://localhost/ceshi/12.php?name=Peter&'.http_build_query($_GET));
Http_build_query ($ _ GET); why does this need to be added or displayed ..
Include is also possible, but allow_url_include in php. ini should be set to On
echo file_get_contents('http://localhost/ceshi/12.php?name=Peter&'.http_build_query($_GET));
Http_build_query ($ _ GET); why does this need to be added or displayed ..
Put your get parameter in 13. php after the 12. php parameter.