beautypg.com

USL LSS-100 User Manual

Page 24

background image

LSS−100P Installation & Operation Manual

24

98.1
%
90
150
0
0157
Obispo

1
HW Rev F
140530
F
192.168.1.153


37
1401739149
Posted to

http://lss.uslinc.com/xml/post.php

>

3.26e+03

-9e+09
9e+09
0
0157
Obispo

1
HW Rev F
140530
F
192.168.1.153


The web server can parse the XML to a database for further analysis and reporting. A simple PHP script
that appends each new LSS-100P XML report to a file and mails each report is shown below. This is a
good starting point to verify that things are working.


$PostData=file_get_contents("php://input"); // get post data into a string
file_put_contents("/tmp/PostTest.txt",$PostData,FILE_APPEND); // append post data to a
file
// Set up to mail data
$to='[email protected]';
$subject='LSS-100 Post Data';
$headers= 'From: [email protected]';
mail($to, $subject, $PostData, $headers);
?>