我有一个简单的PHP编码错误的问题,我无法找到错误的确切位置,有没有办法如何调试PHP脚本?php脚本错误调试
<?php
$fnC = "./includes/dbConnect.php" ;
if(file_exists($fnC)) {
require_once($fnC);
echo "$fnC is found" ;
}
else
{
echo "file does not exist : $fnC" ;
}
?>
<?php
$fnF = "./includes/dbFunctions.php" ;
if(file_exists($fnF)) {
require_once($fnF);
echo "$fnF is found" ;
}
else {
echo "file does not exist : $fnF" ;
}
?>
<?php
foreach($_POST as $key => $i){
print("$key=$i<br>");
}
echo "script finish";
?>
任何线索哪里出错? 里面的2个文件包含/,得到了dbConnect.php的第一个回显(文件存在),然后什么也没有 ,脚本停止 谢谢。
检查'error_log'。 – mudasobwa 2014-12-03 08:38:25