|
System VariablesSystem variables are automatically initialized when a Miva Script program begins execution. There are two types of system variables
All of the time-related variables (except for dyn_time_remaining and globaltimeout) have both static and dynamic versions: the dynamic variables start with the dyn_ prefix. Time VariablesTime variables are not zero-padded; for example, if the time is 12:04, dyn_tm_min returns '4', not '04'. Use the padl() function to perform padding, as needed.
CGI, HTTP, and Other VariablesAll available CGI environment variables are automatically converted into static Miva Script system variables upon start-up. All HTTP headers are saved in environment variables and therefore are also converted to Miva Script static variables. The availability of environment variables depends on the server software; the availability of HTTP headers also depends on the browser; therefore, not all variables listed here are guaranteed to be available in all circumstances. For more information on HTTP headers and environment variables, consult a CGI reference and/or your server documentation. HTTP servers convert HTTP headers into environment variables in which '-' is converted to '_', and to which the prefix 'HTTP' is added. Accessibility CodesOrigin:
Platform:
For example, E: C,N means that the variable in question is inherited from the environment and is accessible in the CGI and NSAPI versions of Miva Merchant Virtual Machine. Miva Script also allows site administrators to define their own system variables. Check with your server administrator to find out whether any have been added to your site.
|