Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: URL $ENV variables

by jsprat (Curate)
on Aug 04, 2003 at 08:47 UTC ( #280610=note: print w/replies, xml ) Need Help??


in reply to URL $ENV variables

Is this is a standard CGI? If so, have a look at $ENV{SCRIPT_FILENAME} and $ENV{SCRIPT_NAME}. SCRIPT_FILENAME gives the absolute path to the running script and SCRIPT_NAME gives the virtual path to the script, both sans query string.

If you want to see all environment variables available to your script, create a script that loops through all the keys of %ENV and prints all key/value pairs.

HTH

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2020-06-01 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (4 votes). Check out past polls.

    Notices?