If the scripts are using a common file, [e.g., config, functions, etc.] you
could define two constants.
define("ORG_FILE", __FILE__);
define("ORG_LINE", __LINE__);
barophobia wrote:
Hello,
I know that __FILE__ and __LINE__ report on the file and line that
they occur in. What I want is to be able to get the file name and line
of the calling script. The only way I can do this so far is by passing
the values through function arguments.
Is there any way around this?
Thanks,
Chris.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php