On Mon, 2004-02-09 at 23:17, Samuel Ventura wrote:
> what I need is to detect the name of the script
> from which I called the function, (test2.php) in this
> case. 
> 
> For this application, it is not practical to pass an
> aditional parameter to the function specifying the
> caller, i need independence.
> 
> Any ideas?

I don't think this is possible in php4.  The __FILE__ variable is a
constant that is always replaced with a string containing the name of
the file it is in.  Check out reflection[1] in php5 for an answer from
the future.

[1]
http://sitten-polizei.de/php/reflection_api/docs/language.reflection.html

-- 
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/

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

Reply via email to