Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: URL $ENV variables

by jsprat (Curate)
on Aug 04, 2003 at 08:47 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://280610]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (10)
As of 2024-04-18 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found