Last active
October 17, 2021 07:00
-
-
Save KevinGaudin/5560305 to your computer and use it in GitHub Desktop.
Simplest PHP ACRA backend
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 | |
// Outputs all POST parameters to a text file. The file name is the date_time of the report reception | |
$fileName = date('Y-m-d_H-i-s').'.txt'; | |
$file = fopen($fileName,'w') or die('Could not create report file: ' . $fileName); | |
foreach($_POST as $key => $value) { | |
$reportLine = $key." = ".$value."\n"; | |
fwrite($file, $reportLine) or die ('Could not write to report file ' . $reportLine); | |
} | |
fclose($file); | |
?> | |
hello @KevinGaudin , i tried this but nothing is written in file so could you please help me solve this?
A good idea ! perfect
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @KevinGaudin, how I can to integrate ProGuard on this?