Header Output
2007-02-22 19:02:21 Davin_Thompson
A quick little fix to that for debugging and beyond... It'll save you hours of headache!
For your php backend pages, redefine the error handeler and output all errors to a logfile. You can then tail that logfile, see all warnings and errors, without throwing your entire ajax response =)
quickie example from memory:
set_error_handler(log_to_file);
...
...
function log_to_file($errnum, $errstr) {
$log = fopen("logfile.txt", "+w");
fwrite($log, $errstr);
}