Herunterladen Inhalt Inhalt Diese Seite drucken

Arexx BS-1500GPS Bedienungsanleitung Seite 72

Gprs & gps transceiver
Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

Explanation PHP example
In this case arguments are provided without argument names. This means
the BS1500 message should match the expected arguments exactly. The
message should be formed as follows:
abcdef&&$d&&$t&&$i&&$v
The argument list is decomposed into an array or strings ($args). The num-
ber of arguments should be equal to 5 in this case, and the first argument
serves as a password. The arguments are base64 decoded, and a simple
character replacement is done to prevent sql injection. This is shown here to
remind you precausions should be taken to prevent misuse of the database.
Also, but not shown here, some argument checking should be done like chec-
king date and time. Since the BS1500 will only send in actual data,
measurements with time stamps that deviate from the actual time can be
rejected. The last step is where data is stored into the database by the sql
insert statement.
72

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

Bs-1500gprs

Inhaltsverzeichnis