Skip to content

Instantly share code, notes, and snippets.

@EnsekiTT
Created July 22, 2013 20:26
Show Gist options
  • Select an option

  • Save EnsekiTT/6057337 to your computer and use it in GitHub Desktop.

Select an option

Save EnsekiTT/6057337 to your computer and use it in GitHub Desktop.
GPSのWebロガー 目標設定すればそことの差がn,eの形式で出るかもしれないぞ
<?php
$aim_n = 1;
$aim_e = 1;
$gps_n = $_GET[n];
$gps_e = $_GET[e];
$fp = fopen("position.log", 'a');
fprintf($fp, $gps_n . ',' . $gps_e . "\n");
fclose($fp);
echo ($aim_n - $gps_n) . ',' . ($aim_e-$gps_e);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment