bortuzar: a simpler version, w/o output buffering:
<?php
$query = sprintf("INSERT INTO EventLog (Trace) VALUES ('%s')",
mysql_real_escape_string(join("\n", debug_backtrace())) );
mysql_query($query);
?>
![]() |
|
||||||||||
|
debug_print_backtraceОписаниеvoid debug_print_backtrace ( void )debug_print_backtrace() prints a PHP backtrace. It prints the function calls, included/required files and eval()ed stuff. Примеры
debug_print_backtrace
taner
21-Aug-2007 04:52
bortuzar: a simpler version, w/o output buffering:
bortuzar at gmail dot com
05-Jun-2007 11:23
If you want to get the trace into a variable or DB, I suggest to do the following:
petermarkellis at googlemail dot com
28-Mar-2007 03:10
A cleaner example:
aidan at php dot net
15-Mar-2005 01:47
This functionality is now implemented in the PEAR package PHP_Compat. |