Blame view

php/change_information.php 302 Bytes
cf76164e6   Ting Chan   20190709
1
2
3
4
5
6
7
8
9
10
11
  <?php
   //include('../cfg/file_name.php');
  
   $open_information = '/home/pi/Desktop/vAlert/log/info.txt';
   shell_exec("sudo chmod 777 ".$open_information);
   
   $fp = @fopen($open_information,'w')  or die("Unable to open file!");
   fwrite($fp, $_POST['information']);
   fclose($fp);
   echo "1";
  ?>