Re: __FILE__ and __LINE__ of calling scripts?
| From: | Scott Noyes | Date: | Tue, 27 Sep 2005 13:17:45 +0000 |
| Subject: | Re: __FILE__ and __LINE__ of calling scripts? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223269@lists.php.net to get a copy of this message | ||
> I want to find out if it is possible to get the file name and the line
> number of a calling script (__FILE__, __LINE_) from a calling class
> automatically.
debug_backtrace contains that info.
http://www.php.net/debug_backtrace
--
Scott Noyes
snoyes@gmail.com