Re: Determining Calling Script Information
| From: | Matt Giddings | Date: | Thu, 13 Aug 2009 15:10:32 +0000 |
| Subject: | Re: Determining Calling Script Information | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296748@lists.php.net to get a copy of this message | ||
Thanks for the pointers!
Matt
Robert Cummings wrote:
Matt Giddings wrote:-- ------------------------------------------------------------------------ Matt Giddings Web Programmer Information Technology Services Saginaw Valley State University Phone: 989.964.7247Hi, Is there a way (other than using __LINE__ and __FILE__) to determine which file & line called a function/method? I would like to add some debugging information to a method but I don't want to have to go through to each line that calls it and add the __LINE__ and __FILE__ parameters. Guess I'm looking for a simple solution. Anyway, if there is a way just point me in the right direction and I'll take it from there.See the help for debug_backtrace() Cheers, Rob.