Blame view

php/change_geophone.php 491 Bytes
cf76164e6   Ting Chan   20190709
1
2
3
4
5
6
7
8
9
10
11
12
13
  <?php
   include('../cfg/file_name.php');
   
   $fp = @fopen($open_geophone,'w+')  or die("Unable to open file!");
   fwrite($fp, 'GAIN '.$_POST['GAIN'].PHP_EOL);
   fwrite($fp, 'DAMPING_RATIO '.$_POST['DAMPING_RATIO'].PHP_EOL);
   fwrite($fp, 'RESISTANCE '.$_POST['RESISTANCE'].PHP_EOL);
   fwrite($fp, 'DAMPING_RESISTOR '.$_POST['DAMPING_RESISTOR'].PHP_EOL);
   fwrite($fp, 'MASS '.$_POST['MASS'].PHP_EOL);
   fwrite($fp, 'FREQUENCY '.$_POST['FREQUENCY'].PHP_EOL);
   fclose($fp);
   echo '1';
  ?>