how to automatically save file with data in php code example
Example: save post data to file php
file_put_contents('test.txt', file_get_contents('php://input'));
file_put_contents('test.txt', file_get_contents('php://input'));