Warning: Invalid argument supplied for foreach() in /home/jihswbiz/public_html/t6.gwilt.org/refDox.php on line 212
Docs-stackPlace

 

ReLoad

Keys


Functions

arraybrowsercolorcookiedatetimeDBdebugdeviceDSTequiverrorflagsfontformatgeo
holidayhtmlisjsonmathparsePHPprintsearchsortstringtabletexttracetype
VOTDweatherxml

Function  stackPlace   Lines 1062-1082 (20 lines) file  utilsDebug.php   Last mod: Mon 2021-05-03 17:55:24

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'];
        }

?>