I have a problem a simple php coding error and I cannot find out where is exactly the error, is there a way how to debug php script ?
<?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";
?>
Any clue where is the error ? the 2 files exists inside includes/, got the first echo of dbConnect.php (file exists) then nothing , script stops Thanks.
error_log
. – mudasobwa Dec 3 '14 at 8:38