+1 vote
9.3k views
in General by
edited
How to log all GET POST data to a file?

1 Answer

0 votes
by
Just do

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

and make sure the file have sufficient ownership and permissions on the server.

Related questions

+2 votes
2 answers 9.8k views
0 votes
1 answer 1.6k views
0 votes
2 answers 5.9k views
asked Jul 17, 2018 in General by anonymous
+2 votes
1 answer 1.2k views
asked Jun 13, 2016 in Magento by Arton
0 votes
1 answer 807 views
asked May 25, 2021 in General by Tester jjavelin (120 points)
+1 vote
2 answers 9.2k views
asked Jan 30, 2018 in Frameworks by Doumeki (480 points)
...