static public function getRuntimePath($depth = 2)
    {
        $stack = debug_backtrace();
        $frame = $stack[count($stack) - $depth];
        return dirname($frame['file']);
    }
static public function getRuntimePath($depth = 2)
    {
        $stack = debug_backtrace();
        $frame = $stack[count($stack) - $depth];
        return dirname($frame['file']);
    }
static public function getRuntimePath ( $ depth = 2 ) { $ stack = debug_backtrace ( ) ; $ frame = $ stack [ count ( $ stack ) - $ depth ] ; return dirname ( $ frame [ 'file' ] ) ; }
Get the file location of the calling file.

@param  integer $depth

@return string
Get the file location of the calling file .