Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Find the full path of the script at run time

by PriNet (Monk)
on Mar 13, 2003 at 05:03 UTC ( #242585=note: print w/replies, xml ) Need Help??


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?
  • Comment on Re: Find the full path of the script at run time

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
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://242585]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2022-06-26 05:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (83 votes). Check out past polls.

    Notices?