Introduction
What is WhizBase
What's new in version 7
Technical information
Virtual directories
CGI mode
Test mode
Escape characters
Comments
Subroutines
Exceptions
Path rules
Installation
Abyss Web Server
Apache
IIS 4, 5, 6 (Windows NT/2000/2003)
Windows 2008 and IIS 7
Netscape servers
OmniHTTPd Server
Xitami
Sections WBSP.SSC
Default
Registration
Server configuration
Servers (virtual hosts)
Variables
AbsolutePath
ActivateCGIByExt
ADOConnectionString
AllowedPaths
CacheDir
CGISecurityString
DefaultDocument
Developer
DisableWB
Execute
FileCommands
HiddenEnvVars
HideDocuments
MaxInstances
RegCode
ScriptTimeOutSec
SessionFile
SessionIdleTime
TimeOutSec
Upload
UseServerKey
VirtualDirHomeRef
Getting started
Your first WBSP page
Something useful
Simple database example
How to...
The simplest database example
1-2-3 example
Displaying formatted records from database table
Displaying records from joined tables
Creating search form
Displaying records in XML format
Simple upload example
Advanced upload example
WBSP file (WhizBase Report Template)
Configuration section
Top section
Detail section
Header and Footer sections
Bottom section
WhizBase Sub Reports
Configuraton section subsections
Include
default.inc
FormFields
Upload
MsgAndLbl
UserData
ErrorMessages
Referrer Check
Update prefixes
$WBNULL$ - delete value
$WB-$ - subtract from value
$WB*$ - multiply value by
$WB/$ - divide value with
$WBA$ - append text to value
$WBP$ - add to value
$WBR$ - remove text from value
Report tags
$WBAdmin
$WBCurrDir - current directory
$WBCurrDirA - current directory absolute path
$WBDocRoot - root directory of virtual host
$WBFileReport
$WBFULID - upload form ID
$WBTimer - system timer
Database related tags
$WBCQuery - URL encoded query expression
$WBDeleted - number of deleted records
$WBQuery - query expression
$WBRecordBreak - force next record
Error message tags
$WBErrDesc - full error description
$WBErrMail - email address shown in error report
$WBErrMsg - error description (text only)
$WBErrNum - error number
Navigation tags
$WBFirstPage - navigation link to first report page
$WBLastPage - navigation link to last report page
$WBNavigator - full set of report navigation links
$WBNextPage - navigation link to next report page
$WBPageNums - links to separate report pages
$WBPrevPage - navigation link to previous report page
Session tags
$WBACTSES - active sessions
Functions
Difference between report and input functions
$WBAADD - add element to array
$WBACHG - change value of array element
$WBALEN - array length
$WBALIDX - last array index
$WBASRC - search array elements for specified value
$WBAPRN - concatenate elements of array
$WBB64DEC - Base64 decode
$WBB64ENC - Base64 encode
$WBBAND - binary AND
$WBBOR - binary OR
$WBBXOR - binary XOR
$WBCACHE - cache content
$WBCALC - calculate math expression
$WBCAPTCHA - show text as captcha
$WBCASE - select case (switch)
$WBCID - mail content ID
$WBDCALC - calculate date
$WBDIR - list directory
$WBDV - decrement value
$WBE - environment variable
$WBERR - simulates an error
$WBESC - URL encode string
$WBFN
ASC - character's ASCII code
BIN - convert decimal number to binary
CHR - print character with specified ASCII code
DATE - current system date
DAY - current day of the month
FDT - date and time in specified format
HEX - convert decimal number to hexadecimal
HTPASS - password used for authentication
HTUSER - user name used for authentication
INT - integer portion of number
LCS - to lowercase
MONTH - current month
OCT - convert decimal number to octal
RND - random number
SECONDS - seconds elapsed since midnight
SQR - square root
TIME - current system time
UCS - to uppercase
USER - current database user name
USERDATA - retrieve value of WB_UserData
UTF - covert text to UTF-8
WEEKDAYN - day of the week (numeric value)
WEEKDAYS - day of the week (string value)
YEAR - current year
$WBFOR - unconditional (for...next) loop
$WBFOREACH - loop through array elements
$WBFSIZE - file size
$WBFTIME - file time
$WBFUP - bytes uploaded
$WBFUT - bytes total
$WBGETATOM - get Atom feed
$WBGC - get cookie
$WBGETRSS - get RSS feed
$WBGETURL - get data from URL (GET method)
$WBGETV - get value of WB variable or array element
$WBGETXML - get XML
$WBIF - conditionally execute statements
$WBINC - include file
$WBIRUN - execute inline script
$WBIV - increment value
$WBJSON - get value of JSON object
$WBJSONELEM - get element names of JSON object
$WBJSONLEN - length of JSON object
$WBPOSTURL - get data from URL (POST method)
$WBRENDER - process WhizBase code
$WBRINC - include file
$WBRNDSTR - randomly generated string
$WBROUND - rounds number value to specified number of decimal places
$WBRRV - read and render configuration variable
$WBRUN - execute external script
$WBRV - read configuration variable
$WBSETV - set value of WB variable
$WBSPLIT - convert string to array
$WBSUB - execute sub-routine
$WBUNESC - decode URL-encoded string
$WBUNTIL - loop until a condition becomes True
$WBURL - generate navigation url
$WBVDHR - virtual directory home reference
$WBWHILE - loop while a condition is True
$WBXCHNAMES - XML node child node names
$WBXPATH - XPath
DB related functions
$WBDetail - show values of all fields
$WBF - show field value
$WBFC - show URL-encoded field value
$WBFF - show formated field value
$WBFU - show field value as UTF-8
$WBP - recordset properties
$WBRF - show field value with processing WhizBase code
$WBSR - sub report
$WBSRQ - sub report with SQL where clause
INI file functions
$WBGS - get INI section
$WBGV - get INI variable
Request related functions
$WBV - request variable
$WBVA - separated list of request variables
$WBVC - URL-encoded request variable
$WBVR - unprocessed request variable
$WBVS - multi-value variable separated as QUERY_STRING
$WBVSC - multi-value variable separated as QUERY_STRING and URL-encoded
Session functions
$WBGETS - get value of session variable
$WBSETS - set value of session variable
String manipulation functions
$WBCNL - clear new line
$WBCSTR - count string appearances
$WBFORMAT - format text
$WBHE - HTML entity
$WBINDOF - index of
$WBLEFT - left substring
$WBLEN - string length
$WBLINDOF - last index of
$WBMID - substring at the specified location
$WBMREPL - multi replace string
$WBREPL - replace string
$WBRIGHT - right substring
$WBRXE - execute a regular expression
$WBRXR - regular expression replace
$WBTRIM - removes both leading and trailing spaces
Encryption functions
$WBDECRYPT - decrypt encrypted string
$WBENCRYPT - encrypt a string
$WBHASH - calculate hash/digest
$WBSXOR - simple XOR encryption/decryption
Variables
FormFields variables
WB_AllowMultipart - accept uploaded files
WB_AppendMode - append report to existing file
WB_Command - the action to be performed by WhizBase
WB_Config
WB_Defaults - set the default values for request variables
WB_Destination - set the file name for saving the output
WB_Forced - force values for request variables
WB_FULID - generate unique form upload ID
WB_HideLogin - scramble login data in navigation URL
WB_Required - list of required request variables
WB_ShowLogo - display powered by WhizBase logo
WB_SysVarByForm - allow system variables (wb_) set as request variables (by form)
WB_TempName - report template file name
WB_TimeOut - set script time-out interval
WB_UseEscapes - use escape sequences for special WB characters
WB_UserData - user defined content
WB_ValDelimiter - delimiter for wb_defaults and wb_forced
Access control
Database
WB_AddJoker - position of automatically added wildcards
WB_AndOr - condition concatenation type
WB_BaseName - name of the database used
WB_CDate - set conversion of date/time and boolean fields
WB_ChangeHFOn - report header/footer grouping field(s)
WB_Connect - ISAM driver or ODBC DSN
WB_DBFlds - field(s) included in recordset
WB_DBLock - record locking type
WB_DBObject - object used to access the database
WB_ExactCount - count all records in recordset
WB_Exclusive - open the database in exclusive mode
WB_Execute - execute SQL statement(s)
WB_Group - SQL clause "GROUP BY"
WB_Having - SQL clause "HAVING"
WB_InsBr - replace new line characters with <br>
WB_LCID - locale identifier ID
WB_MatchCase - case sensitive search
WB_MaxPages - maximum number of page links in report navigation
WB_MaxRec - maximum number of records per page
WB_MQ - make query (yes/no)
WB_Null - update string for clearing field value
WB_Order - SQL clause "ORDER BY"
WB_Pass - database password
WB_Predicate - SQL predicate
WB_Query - SQL clause "WHERE"
WB_RcdSet - SQL clause "FROM"
WB_ReadOnly - open the database in read-only mode
WB_SetADOCompatible - ANSI wildcard compatibility
WB_ShowEmpty - display empty database fields as space
WB_StartRec - internal page counter
WB_System - system database (MDA/MDW) file name
WB_UID - unique record identifier field(s)
WB_Unicode - send field value as unicode
WB_UniFTS - field(s) to be included in Universal Query Search
WB_UniQS - string to be searched for in Universal Query Search
WB_WC - database wildcard character for LIKE comparison
WB_WholeWord - whole word search
WB_Usr - database user name
WBF_field - sending field values as request variables
DB administering (DAO only)
Error reporting
File related (WF and DF commands)
HTTP
Logging
Mail related
Sessions
SMS
MsgAndLbl variables
WB_AddToURL - additional request variables for navigation URLs formated as QUERY_STRING
WB_DigitDir - directory containing image files for graphic navigation links
WB_Style - navigation links CSS style
WBL_FirstPage - link text for First page link
WBL_LastPage - link text for Last page link
WBL_NextPage - link text for Next page link
WB_PassVars - comma delimited list of additional request variables for navigation URLs
WBL_PrevPage - link text for Previous page link
WBM_Deleted - message template for reporting deleted records
WBM_NoMatch - text for reporting that search returned no records
Upload section variables
WB_BaseUrl - URL prefix to be added to uploaded file name
WB_Disallow - list of file types (extensions) that can not be uploaded
WB_MaxFSize - maximum size for a single uploaded file
WB_Overwrite - overwrite existing file with uploaded one
WB_UploadDir - destination directory for uploaded files
WB_UploadLog - file name for logging upload activities
Error messages
Common system errors
5
13
75
429
Database errors
3027
3051
3061
3146
3170
3265
3633
WhizBase specific errors
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
Appendixes
Named Formats
User-Defined Formats
Format expression rules
HTML form and input elements
SQL patterns