Re: __FILE__ and __LINE__ of calling scripts?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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@xxxxxxxxx

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux