WEB Server Quick Start
Page 144
Variables
There are three global variables: $_POST, $_ENV, and $_SERVER. These variables are
used in a similar way to their PHP counterparts. The show controller web-script does not
support local variables and does not allow the value of a variable to be changed directly
(see the section on Functions).
The $_POST variable is used to access the value of data submitted to the server by an
HTTP POST request. This is typically done using an HTML form, but can also be
accomplished using AJAX (Asynchronous JavaScript and XML) or Flash.
The $_ENV variable is used to access the value of variables from the currently running
show. These values can be accessed by the variable name or index.
The $_SERVER variable provides access to values stored within the show controller. A
complete table of the values available from the server can be found below.
To access a value within any of these variables, the proper index must be used. If a value
is posted using an HTML form, the index will be the name of the form item. For
example, the value of a submit button named "submit" can be retrieved as
$_POST["submit"]. An open and closed bracket always surrounds the index. The
$_SERVER variable uses similar index names as follows:
$_SERVER index name
Description
jack
The Ethernet jack that is being used to connect
to the HTTP server.
This value is either "A" or "B"
level
The access level of the user that is currently
logged in.
0 = guest
1 = administrator
2 = customer
Port A
ipa
The IP address of port A
( i.e. "192.168.0.254")
suba
The Subnet mask of port A
( i.e. "255.255.255.0")
gwa
The Gateway address of port A
( i.e. "192.168.0.1")
dnsa
The DNS server address of port A
dhcpa
The state of the DHCP client for port A
"checked" = enabled
"" = disabled
Port B
ipb
The IP address of port B
( i.e. "192.168.0.254")
subb
The Subnet mask of port B
( i.e. "255.255.255.0")
gwb
The Gateway address of port B
( i.e. "192.168.0.1")
Содержание V16Pro
Страница 1: ...V Series Network Controllers Alcorn McBride January 3 2018 User s Guide...
Страница 48: ......
Страница 64: ......
Страница 86: ......
Страница 91: ...V16Pro Page 91 V16Pro...
Страница 114: ......
Страница 118: ...VCore Page 118 VCore Figure 11 Front View Figure 12 Rear View...
Страница 119: ...VCore Page 119 VCore Figure 13 Top View Figure 14 Bottom View...
Страница 138: ......
Страница 167: ...Serial and Ethernet Control Page 167 Control Example Send Command AHJ 0D enables port A Response R 0D...
Страница 172: ......