Sorry accidently replied off-list I basicly said to check out debug_backtrace() at http://www.php.net/debug-backtrace On Mon, 18 Oct 2004 13:56:33 -0600, Adrian Madrid <aemadrid@xxxxxxxxxxxxxxx> wrote: > Is there a way to know which file and line called a function youo are > in? I want to create an error function that can tell me which file and > line called it. I know __FILE__ and __LINE__ but they will return the > file and line that my error function is in, and not the originators. > > Thanks in advance, > > -- > Adrian Madrid > HyperX Inc. > Mobile: 801.815.1870 > Office: 801.566.0670 > aemadrid@xxxxxxxxxxxxxxx > www.hyperxmedia.com > > 9000 S. 45 W. > Sandy, UT 84070 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php