Re: caller() function

From: Date: Tue, 10 Jul 2001 08:32:40 +0000
Subject: Re: caller() function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57100@lists.php.net to get a copy of this message
So far, there is no such functions in PHP...I see lots of posts like this one and all with negative results... "Scott" <scott@graphictype.com> wrote in message news:KFEKLFMNHDILCMFAEKJCAEOOCMAA.scott@graphictype.com... > 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.

« previous php.general (#57100) next »