Created
February 15, 2022 18:58
-
-
Save greg-randall/b6dbcb64c90b78c3e17efba19ff9ad61 to your computer and use it in GitHub Desktop.
Save output from get/post for testing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $data = "\n---------------------------------------------------------------------\nRaw Input:\n" . file_get_contents("php://input"); | |
| $data .= "\n\nGet:\n". print_r($_GET,true); | |
| $data .= "\nPost:\n". print_r($_POST,true); | |
| file_put_contents( "log-output-test.txt", $data , FILE_APPEND | LOCK_EX ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment