[LON-CAPA-dev] Using a loncapa.conf variable

Guy Albertelli II lon-capa-dev@mail.lon-capa.org
Fri, 25 Oct 2002 20:28:51 -0400 (EDT)


Hi Mark,

> 	I want to reference a variable in LON-CAPA conf, such as 
> lonHostID.
> 
> 	What is the explicit protocol?
> 
> I see references to $perlvar in lonnet.pm

$Apache::lonnet::perlvar{'lonHostID'}

You probably should put a use Apache::lonnet at the top.

And if you aren't writing an Apache Module, then you should you
LONCAPA::Configuration as Scott mentioned.

-- 
guy@albertelli.com          BM: n^20 t20 z20 qS 
Guy Albertelli -7-7-7-  O-
    I seldom buy things that have wacky smiling cartoon cephalopods 
    on the package.                 -Kibo