From 1836ae1c92d50a1d639b88cd57db426e81e11eec Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Fri, 17 Apr 2020 16:53:44 -0400 Subject: [PATCH] Use functions --- root/push.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/push.php b/root/push.php index d217efd..d3c2e14 100644 --- a/root/push.php +++ b/root/push.php @@ -40,7 +40,7 @@ function store_sqlite3($data) { function store_raw($data) { $db_path = DB_DIR.'/location-'.date('Y-m').'.raw'; - file_put_contents($db_path, serialize($data)); + file_put_contents($db_path, serialize($data), FILE_APPEND); } $payload = file_get_contents("php://input");