Navigation: thinBasic Modules > CGI > Configuration > thinBasicCGI.config file |
|
thinBasicCGI.config file
thinBasicCGI.config is the global configuration file for CGI.
It is loaded from the thinBasic root folder.
User can override standard configuration parameters in 2 way:
• | loading another configuration file with the CGI_LoadConfigFile function |
• | using a CGI_CfgSetOption at the script runtime. |
If the configuration file could not be found the CGI system initializes all options with default values.
Also CGI_ResetDefaultSettings function resets all options to the system default values.
thinBasicCGI.config uses a standard XML structure.
Here is a typical example:
<?xml version='1.0'?>
<config>
<acceptfileupload>1</acceptfileupload>
<autoaddspecialcharsprefix>1</autoaddspecialcharsprefix>
<autocreatevars>1</autocreatevars>
<bufferizeoutput>0</bufferizeoutput>
<fileuploadbasepath>.\Upload\</fileuploadbasepath>
<forcesessionvalidation>0</forcesessionvalidation>
<maxbytefromstdin>102400000</maxbytefromstdin>
<sessionfilebasepath>.\Sessions\</sessionfilebasepath>
<specialcharsprefix>\</specialcharsprefix>
<temporaryuploadpath>.\Temp\</temporaryuploadpath>
<uploadcanoverwrite>1</uploadcanoverwrite>
<writelogfile>1</writelogfile>
<writevarsintologfile>0</writevarsintologfile>
</config>
Tags
<acceptfileupload>
Action : if nonzero file upload is allowed, otherwise file upload is denied.
Default: 0
<autoaddspecialcharsprefix>
Action : if nonzero force to add the prefix characters to all GET and POST variables.
Default: 0
<autocreatevars>
Action : if nonzero GET or POST variables are created automatically, otherwise no variables are created.
Default: 0
<bufferizeoutput>
Action : if nonzero Stdout output is bufferized and wrote at once, otherwise Stdout output isn't bufferized.
Default: 0
<fileuploadbasepath>
Action : Specify the path where uploaded file will be saved.
Default: .\
<forcesessionvalidation>
Action : if nonzero force the check of GUID and SessionID for each page request before execute.
Default: 0
<maxbytefromstdin>
Action : Limit the amount of bytes to be read from Stdin.
Default: 32768
<sessionfilebasepath>
Action : Specify the path where session file will be saved.
Default: .\
<specialcharsprefix>
Action : Specify the character to prefix to add for these special chars:
null byte, decimal 0, hex 0x00
escape, decimal 27, hex 0x1B
single quote, decimal 34, hex 0x22
double quote, decimal 39, hex 0x27
backslash, decimal 92, hex 0x5C
Default: \
<temporaryuploadpath>
Action : Specify the path where the system puts temporary the uploaded file.
Default: .\Temp\
<uploadcanoverwrite>
Action : if nonzero uploaded files can overwrite existing files, otherwise the upload is rejected.
Default: 0
<writelogfile>
Action : if nonzero write CGI activities in the log, otherwise don't write the log.
Default: 1
<writevarsintologfile>
Action : if nonzero (and also <writelogfile> isn't 0) write the GET and POST variables to the log, otherwise don't write variables content to the log
Default: 0
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |