I have the following function:
function bv_die($msg)
{
die("<b>Error:</b> $msg<br>
<b>Line:</b> ".__LINE__."
<b>File:</b> ".__FILE__);
}
Problem is, as you can guess, that it prints the LINE and the FILE of the error function itself and not of the code that called this function. What should I do? I'd rather not to pass the LINE and FILE to the function as parameters.