Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 romping around the Monastery: (10)
As of 2021-01-25 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?