How to log all GET POST data to a file?

+1 vote
88 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 3738 views
0 votes
1 answer 391 views
+2 votes
1 answer 95 views
asked Jun 13, 2016 in Magento by Arton
0 votes
1 answer 377 views
+1 vote
1 answer 465 views
+1 vote
1 answer 318 views
...