Skip to content

Instantly share code, notes, and snippets.

@weimenglin
Created December 20, 2016 06:14
Show Gist options
  • Save weimenglin/074912e667beb93cf4c89710dab29c55 to your computer and use it in GitHub Desktop.
Save weimenglin/074912e667beb93cf4c89710dab29c55 to your computer and use it in GitHub Desktop.
php接收參數
$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