Re: CGI and Environment Variables

new topic     » goto parent     » topic index » view thread      » older message » newer message
GeorgeWalters said...

Apparently getenv only works for a specific list of environmental vars. FOr example

   query = getenv("QUERY_STRING") 

works but

   query = getenv("DB") 

does not work. None of my env vars work. Can someone confirm and explain?

George,

Is DB set for the current context? For instance, if you are in one console and type export DB=hello and then in another console run your Euphoria program, it will not be set. The DB variable is only valid for that given console. This is true on Windows and Unix.

Further, on Windows, if you use the System Settings to set a new Environmental variable, that does not take effect in current sessions. You have to start new sessions for new env vars to take effect (if set by the control panel in Windows).

Jeremy

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu