LAN Terminal User Manual GTIN (EAN) 4260179020360 | © GloboFleet® GmbH | Page 10
GloboFleet
®
LAN-Terminal
HTTP Upload
The HTTP-Upload will send the driver card and mass storage data to the se-
lected website. This must have the corresponding scripts saved in or-
der to receive the data. Any questions refer to your system administrator.
Example script:
<?php
// Terminal v3.1.2
$clientName
=
$_POST
[
‚clientName‘
];
$clientVersion
=
$_POST
[
‚clientVersion‘
];
// Serial Number
$serial
=
$_POST
[
‚serial‘
];
// filedate
$fileDate
=
$_POST
[
‚filedate‘
];
// uploaded file
$fileName
=
$_FILES
[
‚file‘
][‚name‘];
$tmpName
=
$_FILES
[
‚file‘
][‚tmp_name‘];
// where to store the uploaded file
$target
=
„/home/buyond/apache/“
.$fileName;
// copy the temporary file to target
move_uploaded_file
(
$_FILES
[
‚file‘
][
‚tmp_name‘
], $target);
#
// send answer (‚Message: ok‘, ‚Exception: ...‘)
echo
(
„Message: ok“
.
“\n“
);
?>
Send as e-mail
The driver card or mass storage data can be sent directly through the integrated
mail-client to the given e-mail address. An existing internet connection is requi-
red.
configuration