"; $myfile = fopen("receive_sanlien.txt", "a") or die("Unable to open file!"); fwrite($myfile, $postData . date("Y-m-d H:i:s") . "\n"); fclose($myfile); #with fopen("log.txt", "a") as f: # f.write("asdf"); #$data = json_encode(array('a'=>" 234 ", 'b'=>2)); #echo $data; ?>