Home >Backend Development >PHP Tutorial >关于include异常的有关问题

关于include异常的有关问题

WBOY
WBOYOriginal
2016-06-13 11:47:54930browse

关于include错误的问题
if($atr==NULL){
$mod='search'
}else{
$mod='searchb'
}
include ''.$mod.'.php';
?>

请问这样为什么提示错误啊??谢谢
------解决方案--------------------
首先代码有问题
if($atr==NULL){
$mod='search';
}else{
$mod='searchb';
}
include "$mod.php";
?>

具体提示什么?
------解决方案--------------------
php.ini 中 设置 display_errors=On , 然后重启服务器后再试试看。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn