note 75565 added to function.debug-print-backtrace
| From: | bortuzar at gmail dot com | Date: | Tue, 05 Jun 2007 18:23:07 +0000 |
| Subject: | note 75565 added to function.debug-print-backtrace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127237@lists.php.net to get a copy of this message | ||
If you want to get the trace into a variable or DB, I suggest to do the following:
<?php
ob_start();
debug_print_backtrace();
$trace = ob_get_contents();
ob_end_clean();
$query = sprintf("INSERT INTO EventLog (Trace) VALUES ('%s')",
mysql_real_escape_string($trace));
mysql_query($query);
?>
----
Server IP: 194.145.210.4
Probable Submitter: 87.194.220.148
----
Manual Page -- http://www.php.net/manual/en/function.debug-print-backtrace.php
Edit -- https://master.php.net/note/edit/75565
Del: integrated -- https://master.php.net/note/delete/75565/integrated
Del: useless -- https://master.php.net/note/delete/75565/useless
Del: bad code -- https://master.php.net/note/delete/75565/bad+code
Del: spam -- https://master.php.net/note/delete/75565/spam
Del: non-english -- https://master.php.net/note/delete/75565/non-english
Del: in docs -- https://master.php.net/note/delete/75565/in+docs
Del: other reasons-- https://master.php.net/note/delete/75565
Reject -- https://master.php.net/note/reject/75565
Search -- https://master.php.net/manage/user-notes.php