Re: Info about php script being executed from within function.
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Info about php script being executed from within function.

From: Alvaro G Vicario <alvaro_QUITAR_REMOVE@telecomputer.com>
Date: Fri Aug 26 2005 - 08:20:09 CEST

*** Sandman wrote/escribió (Thu, 25 Aug 2005 19:21:31 +0200):
>> http://es2.php.net/manual/en/language.constants.predefined.php
>
> Eh? The constant __FUNCTION__ contains the name of the current function, which
> when used inside of gauge() naturally returns "gauge".

Hmmm... Yes, you're right. You should pass its value on each call or use a
global variable.

As they've already mentioned, debug_backtrace() is a better option in your
case.

-- 
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Received on Mon Oct 24 02:09:35 2005