Internal Constants
Many of the fields in the DWebPro configuration file specify a path. Since the drive letter of the CD/DVD on which the Web site will run will not be known, it is obvious that paths referenced by DWebPro will have to be dynamically determined at run time. DWebPro solves this issue by using several internal constants to access and substitute dynamic values. The following table details the DWebPro internal constants.
| Internal Constant | Description |
|---|---|
##TEMP## or ##DWEBPRO_TEMP## ##PROGRAMFILES## or ##DWEBPRO_PROGRAMFILES## ##WINDOWS## or ##DWEBPRO_WINDOWS## ##SYSTEM## or ##DWEBPRO_SYSTEM## |
These internal constants refer to standard Windows folders. |
##DWEBPRO_HASH## |
This constant contains the MD5 value of the dwebpro.exe file. This value is useful in helping
to protect a distributed Web application against piracy. |
##DWEBPRO_PROJECTID## |
This constant identifies the ProjectID of the distributed project. Refer to the Main tab topic for more information. |
##DWEBPRO_PROJECTFOLDER## |
This constant identifies a unique directory. Refer to the Main tab topic for more information. |
##DWEBPRO_HOSTNAME## |
This constant identifies the DWebPro host name. Refer to the Main tab topic for more information. |
##DWEBPRO_PATH## |
This constant refers to the path in which the dwebpro.exe is located. |
##DWEBPRO_DOCUMENTROOT## |
This constant refers to the www folder. |
##DWEBPRO_PROGRAMS_PROJECTFOLDER## |
This constant refers to the path of the current project in the Programs folder. Refer to the Main tab topic for more information. |
##DWEBPRO_PERSONAL_PROJECTFOLDER## |
This constant refers to a path in the user's personal folder (with Read and Write access) for the current project. Refer to the Main tab topic for more information. |
##DWEBPRO_LICENSE_XXXX##
|
These constants contain the license information. You can use these value to lock your web site code against your own DWebPro License (i.e. nobody will be able to execute your web site code with another DWebPro license). The values available are:
|
##IEXPLORER## |
This constant refers to the path to Microsoft Internet Explorer. |
##MACHINENAME## |
This constant refers to the network name of the machine. If DWebPro is not able to retrieve the network name, a value of 127.0.0.1 is used. |
##DWEBPRO_WEBSERVER_IP## |
This constant refers to the IP on which the primary web server is listening on. |
##DWEBPRO_XXXX_PORT##
|
These constants refer to the port on which the server specified by XXXX is listening (i.e. ##DWEBPRO_MYSQL_PORT## or ##DWEBPRO_WEBSERVER_PORT##). |
##DWEBPRO_XXXX_DATABASEVERSION##
|
These constants refer to the version of the database specified by XXXX. (i.e. ##DWEBPRO_MYSQL_DATABASEVERSION## or ##DWEBPRO_MSACCESS_DATABASEVERSION##). |
##DWEBPRO_XXXX_DATADIR##
|
These constants refer to the folder in which there are the files of the database specified by XXXX. (i.e. ##DWEBPRO_SQLITE_DATADIR## or ##DWEBPRO_MSACCESS_DATADIR##). |
##DWEBPRO_FIREBIRD_BASEDIR## |
This constant identifies the folder to which the Firebird server executable files are copied. |
##DWEBPRO_ZOPE_HTTP_PORT## |
This constant refers to the port on which the Zope HTTP server is listening (see the deploy\engine\zope\zope-instance\etc\zope.conf file). |
##DWEBPRO_ZOPE_FTP_PORT## |
This constant refers to the port on which the Zope FTP server is listening (see the deploy\engine\zope\zope-instance\etc\zope.conf file). |
##DWEBPRO_ZOPE_INSTANCE_HOME## |
This constant refers to the Zope Home folder (see the deploy\engine\zope\zope-instance\etc\zope.conffile). |
##DWEBPRO_ZOPE_HOME## |
This constant refers to the Zope InstanceHome folder (see the deploy\engine\zope\zope-instance\etc\zope.conf file). |
##DWEBPRO_ZOPE_IP## |
This constant specifies the IP address on which the Zope application server is listening (see the deploy\engine\zope\zope-instance\etc\zope.conf file). |
##DWEBPRO_RAILO_HOME## |
This constant refers to the RailoHome folder. |
##DWEBPRO_RAILO_CONFIGFILE## |
This constant refers to the Railo ConfigFIle path. |
##DWEBPRO_MSDE_INSTANCENAME## |
This constant refers to the MSDE 2000 instance name. |
##DWEBPRO_MSDE_INSTANCENAME## |
This constant refers to the MSDE 2000 database name. |
##DWEBPRO_MSDE_SAPASSWORD## |
This constant refers to the MSDE 2000 administrator (sa) password. |
##DWEBPRO_MSDE_TARGETDIR## |
This constant refers to the path of the directory where the MSDE 2000 engine will be installed. |
##DWEBPRO_MSDE_DATADIR## |
This constant refers to the path of the directory where the MSDE 2000 database files will reside. |
##DWEBPRO_MSDE_BACKUPFILE## |
This constant refers to the MSDE 2000 backup file. |
##DWEBPRO_SQLSERVER2005_INSTANCENAME## |
This constant refers to the SQL Server 20005 Expres Edition instance name. |
##DWEBPRO_SQLSERVER2005_SAPASSWORD## |
This constant refers to the SQL Server 20005 Expres Edition administrator (sa) password. |
##DWEBPRO_SQLSERVER2005_TARGETDIR## |
This constant refers to the path of the directory where the SQL Server 20005 Expres Edition engine will be installed. |
##DWEBPRO_SQLSERVER2005_DATADIR## |
This constant refers to the path of the directory where the SQL Server 20005 Expres Edition database files will reside. |
##DWEBPRO_TRIAL_TYPE## |
This constant refers to the type of trial protection used. It can contain one of the following values: none, day,time, start |
##DWEBPRO_TRIAL_EXPIRATION## |
This constant refers to the expiration date (in yyyy-mm-dd format) specified in the Time Trial field of the DWebPro Trial Generator tool. |
##DWEBPRO_TRIAL_MAXSTART## |
This constant refers to the number of allowed starts specified in the Start Number field of the DWebPro Trial Generator tool. |
##DWEBPRO_TRIAL_MAXDAY## |
This constant refers to the number of allowed days of execution specified in the Day Number field of the DWebPro Trial Generator tool. |
##DWEBPRO_TRIAL_REGISTERED## |
This constant contains true if the web application has been registered, otherwise it contains false. |
##DWEBPRO_TRIAL_DAYSREMAINED## |
This constant contains the number of days of execution still available. This value is valid for both Time Trial and Day Trial types of trial protection. |
##DWEBPRO_TRIAL_STARTSREMAINED## |
This constant contains the number of starts still available. |
|
You can get the same values of the |
You can also use the environment variables provided by the operating system using a constant like ##ENV_nnnn## with the "nnnn" string representing the name of the environment variable. For example:
##ENV_PATH## ##ENV_APPDATA## ##ENV_CLASSPATH##
For information on how to read DWebPro Internal Constants, refer to the How to Read DWebPro Internal Constants from Code topic.


