http://qs321.pair.com?node_id=242585


in reply to Find the full path of the script at run time

i use the following to determin my "real" path ibanix...
my($Root) = substr($ENV{'PATH_TRANSLATED'},0,length($ENV{'PATH_TRANSLATED'})-length($ENV{'PATH_INFO'}));


you mean there's any easier way?

Replies are listed 'Best First'.
Re: Re: Find the full path of the script at run time
by dakkar (Hermit) on Mar 13, 2003 at 13:36 UTC

    Doesn't this work only for CGI scripts?

    -- 
            dakkar - Mobilis in mobile