Created
January 28, 2019 07:55
-
-
Save z2z/185a38fe956e592b817c6c071a24f66a to your computer and use it in GitHub Desktop.
php request log
This file contains 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 | |
// Simple script to write a log of any requests(get/post) in php. | |
// Log is written in the same directory. request.log | |
error_log( print_r( $_SERVER, true ),3, dirname(__FILE__)."/request.log" ); | |
error_log( print_r( $_REQUEST, true ),3, dirname(__FILE__)."/request.log" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment