文件包含漏洞防御

指定接收参数的文件所能包含的文件,
if($file!='include.php'){
echo "Error";
exit;
}

原文地址:https://www.cnblogs.com/lyxsalyd/p/12600841.html