1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-12-26 04:24:07 +00:00
tcl_update_db/index.php

17 lines
496 B
PHP
Raw Normal View History

2017-11-01 16:50:09 +00:00
<?php
2017-11-03 22:08:06 +00:00
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$input_xml = file_get_contents('php://input', false, NULL, -1, 8192); // read max 8 KiB
echo "Input length is " . strlen($input_xml) . " Bytes." . PHP_EOL;
echo $input_xml . PHP_EOL;
// TODO: Check if it's XML
// If so: Store a copy for re-parsing (or to print out and hang up on a wall)
// Then parse XML into database
exit;
}
echo "Here is the normal page.";
// TODO: Show statistics from database