Re: function knows where call came from?

From: Date: Wed, 28 Mar 2001 17:44:55 +0000
Subject: Re: function knows where call came from?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45937@lists.php.net to get a copy of this message
Yes, that would be really cool. I my self has tried to find a way to do this, and throw this question to the list sometimes ago... no repond. What would be great, if we can do this, is that we can somehow create a pseudo-private method for classes (since php OO does not have that), and limit only a certain file/page can call that pseudo-private method, by checking which page call that method. Please let me know if you find any further information on this. Thanks in advance Reuben D. Budiardja At 06:26 PM 3/28/01 +0100, Peter Van Dijck wrote:
say you include a function in a page, and then you call that function. Is there a way (without actually passing through the parameters) for that function to know which page and which line called it? That would be VERY cool! Peter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http://liga1.com: building multiple language/culture websites -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
Reuben D. Budiardja Web Database Application Programmer / Analyst Devcorps, ITS Goshen College, IN 46526

« previous php.general (#45937) next »