How to log all GET POST data to a file?

+1 vote
34 views
asked Jul 18 in General by labii
edited Jul 18
How to log all GET POST data to a file?

1 Answer

0 votes
answered Jul 18 by plc
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 3588 views
0 votes
1 answer 384 views
+2 votes
1 answer 88 views
asked Jun 13, 2016 in Magento by Arton
0 votes
1 answer 372 views
+1 vote
1 answer 455 views
+1 vote
1 answer 275 views
...