> 
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to