Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by PriNet (Monk)
on Mar 13, 2003 at 05:03 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-24 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found