WebPoint Scripting Language  
home


back  Back to Home Page

back Back to Home Page

WebPoint - Settings.ini

Back To Settings 

WebPoint Settings

Local settings for a web site are stored in the settings.ini file which resides in the base folder of a web page. The base folder is also the value of the built-in AppID variable.

The settings.ini file is a regular Windows INI file, read by and written to by GetPrivateProfileString and WritePrivateProfileString API functions. This implies the following structure:

      	[Category1]
      	Settingname1 = Setting1
      	Settingname2 = Setting2
      	...

	      [Category2]
	      ...
			

Settings

The WebPoint system reads this file first on each web page requested by a client. Some settings define the behavior delivered. The following table explains some of the global settings which are placed in the category Settings.

Setting Meaning
FrontDoor Specifies the file to serve when the client does not specify a file. This can be a script or a web page.

Data Base Settings

If a data base is involved and WebPoint functions issue requests to this data base, the settings file also specifies the location of the data base which does not need to reside locally with the web site. (For security reasons, this is not even recommended.)

These settings are in the category DataBase.

Setting Meaning
AstaHostAddress Specifies the address where the data base can be found by the WebPoint system.
AstaHostPort Specifies the port number.

Constants

Constants are (constant) values that web site authors can define globally for the whole site. The advantage of such constants is that they are available from any HTML and script file on the site. These constants are defined in the same way as all other settings in the settings.ini file and must be in the category of Constants.

Some usual constants are:

Constant Value
BasePath Specifies the base folder of the web site. This constant can be used to build paths to sub folders for e. g. images or scripts, since constant processing works even in the settings file.
The base folder should be specified relatively as ..//.
ImagePath Specifies the folder where the images for the web site are located.
Should be a relative path as well and can be concatenated with the BasePath constant: ../WPFunctions<!Image Path>/
As can be seen, constant replacement works in the settings file as well; the output of this constant will be: ../<!Base Path>/<!Image Path>/

back  Back To Home Page

© Copyright 2008 Intouch Technology Group
->