change_mems.php 621 Bytes
<?php
 include('../cfg/file_name.php');
 
 $fp = @fopen($open_mems,'w+')  or die("Unable to open file!");
 fwrite($fp, 'A_AXIS_OFFSET '.$_POST['A_AXIS_OFFSET'].PHP_EOL);
 fwrite($fp, 'B_AXIS_OFFSET '.$_POST['B_AXIS_OFFSET'].PHP_EOL);
 fwrite($fp, 'C_AXIS_OFFSET '.$_POST['C_AXIS_OFFSET'].PHP_EOL);
 fwrite($fp, 'D_AXIS_OFFSET '.$_POST['D_AXIS_OFFSET'].PHP_EOL);
 fwrite($fp, 'A_AXIS_1G '.$_POST['A_AXIS_1G'].PHP_EOL);
 fwrite($fp, 'B_AXIS_1G '.$_POST['B_AXIS_1G'].PHP_EOL);
 fwrite($fp, 'C_AXIS_1G '.$_POST['C_AXIS_1G'].PHP_EOL);
 fwrite($fp, 'D_AXIS_1G '.$_POST['D_AXIS_1G']);
 fclose($fp);
 echo '1';
?>