How to log all GET POST data to a file?

+1 vote
545 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 3989 views
0 votes
1 answer 411 views
+2 votes
1 answer 102 views
asked Jun 13, 2016 in Magento by Arton
0 votes
1 answer 384 views
+1 vote
1 answer 502 views
+1 vote
1 answer 469 views
...