<?php
//RIの計測のカウントを保存

EXTRACT($_POST);
EXTRACT($_GET);

//$data = isset($_POST["gps"]) ? htmlspecialchars($_POST["gps"]) : "";

$data = isset($_GET["gps"]) ? htmlspecialchars($_GET["gps"]) : "";

$file_name = date("Ymd",time()) .".log";

$fp = fopen("./gps/" .$file_name, "a");
$nowUtime = time();
fwrite($fp,"[" .date("Y-m-d H:i:s",time()) ."] " ."\n" .$data ."\n");
fclose($fp);



$fp2 = fopen("new_gps.log", "w");
$nowUtime = time();
fwrite($fp2,"[" .date("Y-m-d H:i:s",time()) ."] " ."\n" .$data ."\n");
fclose($fp2);



?>
