version 1.2, 2004/05/17 22:08:56
|
version 1.3, 2005/04/07 06:56:22
|
Line 1
|
Line 1
|
\label{Guts_Apache_Env} |
\label{Guts_Apache_Env} |
|
|
The environment is accessible through the global hash named \%ENV. |
The environment is accessible through the global hash named \%env. |
In addition to the standard variables placed in the environment by |
In addition to the standard variables placed in the environment by |
the Apache server, LON-CAPA places a lot of information in the \%ENV. |
the Apache server, LON-CAPA places a lot of information in the \%env. |
You can see this information by going to \texttt{/adm/test}; the top |
You can see this information by going to \texttt{/adm/test}; the top |
part of that screen will show your current \%ENV. (You may need to |
part of that screen will show your current \%env. (You may need to |
modify \texttt{/home/httpd/lonTabs/htpasswd} before you can view that |
modify \texttt{/home/httpd/lonTabs/htpasswd} before you can view that |
handler and change the password for \texttt{lonadm}.) |
handler and change the password for \texttt{lonadm}.) |
|
|
Line 12 Many of the environment variables are pr
|
Line 12 Many of the environment variables are pr
|
and permission routines (such as \texttt{Apache::lonnet::allowed}), |
and permission routines (such as \texttt{Apache::lonnet::allowed}), |
and are very rarely directly manipulated. |
and are very rarely directly manipulated. |
|
|
Generally, the \%ENV is informally organized into {}``namespaces'', |
Generally, the \%env is informally organized into {}``namespaces'', |
such as {}``browser'' (containing browser information), {}``course'' |
such as {}``browser'' (containing browser information), {}``course'' |
(containing course-specific information), etc. For the following table, |
(containing course-specific information), etc. For the following table, |
the full name of the variable is the name shown on the left, prepended |
the full name of the variable is the name shown on the left, prepended |
by the section it is in. For instance, the first \%ENV member shown |
by the section it is in. For instance, the first \%env member shown |
below is \$ENV\{'browser.mathml'\}. Only generally useful portions |
below is \$env\{'browser.mathml'\}. Only generally useful portions |
of the \%ENV are covered here. |
of the \%env are covered here. |
|
|
\begin{longtable}{|c|c|} |
\begin{longtable}{|c|c|} |
\hline |
\hline |
\textbf{\%ENV name}& |
\textbf{\%env name}& |
\textbf{Description}\tabularnewline |
\textbf{Description}\tabularnewline |
\hline |
\hline |
\endfirsthead |
\endfirsthead |