Keys →
Functions ↓
function stackPlace ( $html=true ) {#-k debug trace#- where was the routine I'm in called from?#- $html - if true (default) return with HTML fmting#- Example output:#- [MAIN] moon1.php:257#- $maxflen = 0; $blanks = ' !'; $raw = debug_backtrace(); $entry = $raw[1]; if (isset($raw[2]['function'])) { $nf = $raw[2]['function']; } else { $nf = 'MAIN'; } $arr = explode ( '/', $entry['file'], 30 ); # get filename if ($html) return '<br><pre>[<b>' . $nf . '</b>] ' . $arr[count($arr)-1] . ':' . $entry['line'] . '</pre>'; else return '[' . $nf . '] ' . $arr[count($arr)-1] . ':' . $entry['line']; }?>