Re: pathname of current executing file relative to document root

2002-12-30 Thread Carlos Kassab
Hi, maybe this resolve your problem. [+ $ENV{'PATH_TRANSLATED'}+] This env variable have the value you are looking for. Well it resolve the problem i have to execute subs from different directory trees. [- @keys = keys %ENV; @values = values %ENV; -] [$ while (@keys) $] [+pop(@keys)+]= [+

Re: pathname of current executing file relative to document root

2002-12-30 Thread Kee Hinckley
At 4:09 PM -0500 12/30/02, Kee Hinckley wrote: Is there a clean way to get this in HTML::EmbperlObject, or should I just take $0->ReqFilename() and remove $ENV{DOCUMENT_ROOT}? Actually, I take it back. ReqFilename doesn't have the right name either. How do I get the name of the file currentl

pathname of current executing file relative to document root

2002-12-30 Thread Kee Hinckley
Is there a clean way to get this in HTML::EmbperlObject, or should I just take $0->ReqFilename() and remove $ENV{DOCUMENT_ROOT}? In case you're wondering. I'm pulling text out of a database depending on the current file, but there are times where the file is Executed rather than directly invok