I tend to use the following at the beginning of my code when developing so that errors come through to the browser etc.

error_reporting(E_ALL);
ini_set("display_errors", 1);

And if I want a "prettier" error message I use:

function on_error($num, $str, $file, $line) {
print "Error $num in file: $file (line # $line) - $str\n";
}

set_error_handler("on_error");


Jon Paris

www.Partner400.com
www.SystemiDeveloper.com



On Feb 5, 2010, at 1:00 PM, web400-request@xxxxxxxxxxxx wrote:

The location of your error log and what errors are logged is all set in the php.ini file.
My error log file is at /usr/local/Zend/Core/logs/php_error_log.

You might already know this but you can use the function phpinfo() to output
lots of php information including the location of your error log.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.