Created
December 20, 2016 06:14
-
-
Save weimenglin/074912e667beb93cf4c89710dab29c55 to your computer and use it in GitHub Desktop.
php接收參數
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
$reqs = $_POST;$fp = fopen("raw_test.txt", 'a'); | |
$str = date("m-d_H:i:s") ." @ " .$_SERVER['REMOTE_ADDR']."\n"; | |
ob_start(); | |
echo date("m-d_H:i:s")."\n"; | |
print_r($reqs); | |
echo "--------------\n"; | |
$reqs = ob_get_contents(); | |
ob_end_clean(); | |
fwrite($fp, $str); | |
fwrite($fp, "==REQUEST start==\n" . $reqs . "\n==end==\n"); | |
fclose($fp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment