How To Read DWebPro Internal Constants From Code
Some environment variables available to the primary Web server are very useful for dynamic link management. These variables are the same defined in the constants, excluding initial and ## characters.
You can read the environment variables using PHP, executed as CGI, with the following code:
$_SERVER["DWEBPRO_DOCUMENTROOT"]
You can read the environment variables using PHP, executed as ISAPI, with the following code:
dwebpro_getvar('DWEBPRO_DOCUMENTROOT');
You can read the environment variables using ASP Classic 3.0 with the following code:
Request.ServerVariables('DWEBPRO_DOCUMENTROOT');
You can read the environment variables using ASP.NET with the following code:
Environment.GetEnvironmentVariable("DWEBPRO_DOCUMENTROOT");
You can read the environment variables using Perl with the following code:
$ENV{"DWEBPRO_DOCUMENTROOT"}
You can read the environment variables using SSI with the following code:
<!--#echo var="DOCUMENT_ROOT" -->
Refer to the topic DWebPro Internal Constants for more information on DWebPro internal constants.


