[PHP] caller function identification

2003-05-29 Thread Christopher D. Jarecki
Hi,

Is there a way to find out which function (or which script) called
the function that is currently being executed?

I mean something like perl's caller_function().

Regards,

--
Christopher D. Jarecki
Senior Application Developer
Implix.com



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



Re: [PHP] caller function identification

2003-05-29 Thread Marek Kilimajer
Nope

Christopher D. Jarecki wrote:

Hi,

Is there a way to find out which function (or which script) called
the function that is currently being executed?
I mean something like perl's caller_function().

Regards,

--
Christopher D. Jarecki
Senior Application Developer
Implix.com


 



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


[PHP] caller() function

2001-07-09 Thread scott [gts]

i cannot seem to find any function that's similar to
perl's caller() function - to get information about the
file/function that is calling the current function.

for example, the test() function is called from scott.php

scott.php

? include('test.php'); ?
Hello there
?
test();
?


test.php

function test() {
  without passing in __LINE__ and __FILE__ 
  to the test() function myself, is there anyway
  to find out the file/line that called this function??
}



thanks.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]