init
python
This commit is contained in:
9
PCSurvey/PCstatic/write_data.php
Normal file
9
PCSurvey/PCstatic/write_data.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$post_data = json_decode(file_get_contents('php://input'), true);
|
||||
// the directory "data" must be writable by the server
|
||||
$name = "/Data/".$post_data['filename'].".json";
|
||||
//$name = "logsOutput/".$post_data['filename'].".json";
|
||||
$data = $post_data['filedata'];
|
||||
// write the file to disk
|
||||
file_put_contents($name, $data);
|
||||
?>
|
||||
Reference in New Issue
Block a user