save post data to file php 1

save post data to file php

file_put_contents('test.txt', file_get_contents('php://input'));

Here is what the above code is Doing:
1. It’s getting the raw POST data from the request.
2. It’s writing that raw data to a text file.

Similar Posts