they are interspersed throughout the page. I had originally used log functions I wrote but it didn't help in debugging. I am evolving now. I literally just put in error_log("introduced error"); in the script. Even at the beginning I put one. I works on other servers. One of which is an IIS server as well.
I, for example, removed a ; in a like, which will of course, cause a compile error. I can see the error in the log. Usual Syntax error. on other servers when I there in the error_log(); I get the associated message in the log.
I even through this in for fun...
if (1)
{
error_reporting(-1);
ini_set("html_errors", 0);
ini_set("display_startup_errors", 1);
ini_set("log_errors", 1);
ini_set("display_errors", 1);
ini_set("track_errors",1);
ini_set("report_memleaks",1);
}
nothing in the logs.
This is a work in progress but...
private function log($line, $file, $info)
{
$file = explode('\',$file);
$file = array_pop($file);
$line=sprintf("%5s",$line);
$errline='Line: '.$line.' File: '.$file.' Message: '.$info;
$this->log[] = $errline;
if ($this->phpLogDebug)
{
$return = error_log($errline);
}
if (strpos($errline, 'ERROR') !== false)
{
$this->_logError($errline);
}
}