perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: Finding currently executing filename
Date Sun, 19 Sep 2004 12:12:16 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
> 

IN Embperl 2 use 

$epreq -> component -> sourcefile

In Embperl 1.3 use

$r = shift ;
$r -> Sourcefile


Gerald


> 
> 
> 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
> 
> 


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


Mime
View raw message