function log() { try { $bt = debug_backtrace(); $fileAndLine = ""; for ($i = 0; $i < 10; $i++) { $row = $bt[$i]; if (isset($row["file"]) && isset($row["line"])) { $fileAndLine = $row["file"] . "::" . $row["line"]; $i = 50; } } return $fileAndLine; } catch (Exception $ex) { return ""; } }
No comments:
Post a Comment