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: Thu Aug 25 2005 - 15:06:40 CEST

*** Sandman wrote/escribió (Thu, 25 Aug 2005 14:01:05 +0200):
> The constant __FILE__ points to the file in which gauge was *defined* (i.e.
> init.php) and superglobals like $_SERVER["PATH_TRANSLATED"] point to index.php
>
> Anyone knows how to find out what file called on a function?

>From the constant __FUNCTION__, I presume:

http://es2.php.net/manual/en/language.constants.predefined.php

-- 
-- Á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:30 2005