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
Add - A
Add DB user or group - AU
Add DB user to group - AG
Change DB user password - CP
Compact database - CD
Delete - D
Delete DB user from group - DG
Delete DB user or group - DU
Delete file - DF
Mail to list of recipients - L
Multi update - MU
Personalized email - P
Query - Q
Read DB permissions - RP
Render - R (default)
Send file - SF
Send SMS - SMS
Set DB permissions - SP
Test - T
Update - U
Write to file - WF
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
HTAccess File - configuration file for authentication
WB_AuthType - authentication method
WB_LoginPage - file name of login page for cookie authentication
WB_Realm - realm for basic and digest authentication
WB_Scramble - scramble (hide) password(s) stored in htaccess file
WB_HTAccess - location of configuration file for authentication
WB_HTPass - authentication password
WB_HTUsr - authentication user name
WB_IPListFile - location of file containing list of (dis)allowed IP address ranges
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)
WB_DBAddData - permission for adding records to the database
WB_DBAdmin - permission for administering the database
WB_DBDelData - permission for deletinging records from the database
WB_DBEditData - permission for updating records in the database
WB_DBGroup - name of the database users' group
WB_DBModDes - permission for modifying the database structure
WB_DBNewPass - new database password
WB_DBNPassCh - control value of the new password
WB_DBOldPass - old database password
WB_DBReadData - permission for reading records from the database
WB_DBReadDes - permission for reading records the database design (structure)
WB_DBUser - database user name for administering
WB_PID - personal identification
Error reporting
WB_ErrFile - template for error reports
WB_ErrMail - email address at the end of error message
File related (WF and DF commands)
WB_FileName - file name for DF and WF commands
WB_KeyName - variable name(s) for WF command
WB_KeyValue - variable value(s) for WF command
WB_Section - file section for WF command
WB_Separator - character used to separate different keys and different values for WF command
HTTP
WB_AddCookie - name and value of the cookie to be added/modified
WB_ContentType - value for HTTP Content-Type: clause
WB_HTTPHeader - additional clauses for HTTP header
WB_Redirect - the URL for 301 redirect (HTTP header Location: clause)
Logging
WB_Debug - file name for storing the debug information
WB_Log - file name for storing the log data
WB_LogData - data to be stored in log
WB_LogTemp - template for log record
Mail related
WB_Attach - mail attachment
WB_AttachField - name of field containing attachment file name(s)
WB_BCC - email BCC address(es)
WB_BCCField - database field name containing email BCC address(es)
WB_CC - email CC address(es)
WB_Embed - the name(s) of the file(s) to be embedded in the email
WB_From - email from address
WB_MailAuth - mail server authentication type
WB_MailPass - mail server authentication password
WB_MailPort - mail server SMTP port
WB_MailServer - mail server name or IP address
WB_MailSSL - mail server authentication type
WB_MailUser - mail server authentication user name
WB_PlainText - plain text email messsage part
WB_Subject - email subject
WB_To - email TO address(es)
WB_ToField - database field name containing email TO address(es)
Sessions
WB_ClearSessions - clear incative (expired) sessions
WB_LogOffSession - clear current session
WB_UseSessions - use server sessions
SMS
WB_SMSBR - SMS baud rate
WB_SMSC - SMS center number
WB_SMSCharacter - SMS character type
WB_SMSDB - SMS data bits
WB_SMSField - database field name containing phone number of text message recipient
WB_SMSIgnoreErrors - ignore SMS error messages
WB_SMSNumber - SMS recipient phone number
WB_SMSParity - SMS parity type
WB_SMSPIN - SMS Personal Identity Number (PIN)
WB_SMSPort - SMS modem COM port
WB_SMSSB - SMS stop bits size
WB_SMSSD - SMS send delay
WB_SMSSR - SMS send retry
WB_SMSTO - SMS timeout
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