Skip to content

Instantly share code, notes, and snippets.

@KevinGaudin
Last active October 17, 2021 07:00
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save KevinGaudin/5560305 to your computer and use it in GitHub Desktop.
Save KevinGaudin/5560305 to your computer and use it in GitHub Desktop.
Simplest PHP ACRA backend
<?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);
?>
@arivasvera
Copy link

Hi @KevinGaudin, how I can to integrate ProGuard on this?

@Irfan7
Copy link

Irfan7 commented Mar 6, 2016

hello @KevinGaudin , i tried this but nothing is written in file so could you please help me solve this?

@hatamiarash7
Copy link

A good idea ! perfect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment