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

关于include异常的有关问题

WBOY
Release: 2016-06-13 11:47:54
Original
932 people have browsed it

关于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 , 然后重启服务器后再试试看。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template