Browse Source

Use functions

master
Julien Cabillot 9 months ago
parent
commit
1836ae1c92
1 changed files with 1 additions and 1 deletions
  1. 2
      root/push.php

2
root/push.php

@ -40,7 +40,7 @@ function store_sqlite3($data) {
function store_raw($data) { function store_raw($data) {
$db_path = DB_DIR.'/location-'.date('Y-m').'.raw'; $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"); $payload = file_get_contents("php://input");

Loading…
Cancel
Save