USL LSS-100 User Manual
Page 24
LSS−100P Installation & Operation Manual
24
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);
?>