perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Allen <ch...@cjx.com>
Subject Finding currently executing filename
Date Wed, 15 Sep 2004 13:22:51 GMT
How do I find the name of the currently executing file
from Embperl under Apache? I can find the top level
file using $ENV{PATH_TRANSLATED}, but this won't work
for sub-executes



for example:

foo.html:

----------------------------

[- Execute('bar.html') -]

---------------------------






bar.html:

---------------------------

Currently executing: [+ $ENV{PATH_TRANSLATED +]

---------------------------





this will print:

"Currently executing /usr/web/htdocs/foo.html"



but I want it to print:

"Currently executing /usr/web/htdocs/bar.html"



Any ideas??




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message