EasyManua.ls Logo

Alcorn Mcbride V16Pro - Function Params

Alcorn Mcbride V16Pro
179 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
WEB Server Quick Start Page 149
Web
Server
Function Params
A function parameter can be a string, number, variable, or combination thereof. The
following table defines these parameter types
Type
Usage
String
A string is any combination of double-quoted values and
hex values.
Double-quoted values may include escape characters
using a backslash \
Valid escape characters are:
\r carriage return
\n new line
\t tab
\" double-quotation mark
\\ backslash
\x hex where the x is followed by two ASCII hex
characters. For example, \x35 represents the ASCII
character ‘5’.
Number
Numbers include any whole number
Variable
See the section on Variables
Combination
To combine two or more values together for a single
parameter, use the concatenation operator. The
concatenation operator is a single period "."
For example, to output a link to a page on the web server
using Ethernet port A, use the print function as follows:
<a href="<? print("http://" . $_SERVER["ipa"] .
"/newpage.htm"); ?>">New Page</a>
Using the default IP address, this will result in a link to:
http://192.168.0.254/newpage,htm

Table of Contents