<?php
c();
function c() {
d("error is here");
}
function d($msg) {
$e = new Exception();
//print_r($e->getTrace());
$arr = $e->getTrace();
echo time().":".$arr[0]["file"].":".$arr[0]["line"].":".$arr[1]["function"]."n";
echo $msg;
echo "n";
}
?>