Feature: Delete selected record in log file

Fixer's Avatar


10 Oct, 2014 07:33 PM

$plik = "plik.txt";

$dane = file($plik);

if (isset($_POST["usun"])) {
  for ($i=0;$i<count($_POST["usun"]);$i++) {
  $f = fopen($plik, "w");
  foreach($dane as $linia) fputs($f, "$linia");

echo "<form action=\"index.php\" method=\"post\">";
foreach($dane as $linia) {
  echo "<input type=\"checkbox\" name=\"usun[]\"
        value=\"$i\" />$linia<br />";
echo "<input type=\"submit\" value=\" usuń \" /></form>";

  1. Support Staff 1 Posted by potsky on 11 Oct, 2014 06:37 PM

    potsky's Avatar

    This feature is impossible to implement because it does not work with huge log files.

    Moreover, Pimp My Log will never write, update or delete any log. More generally, this is a bad idea to delete log...

    But... you give me an idea : add a configuration feature to let users add buttons to perform actions. Initial actions will be :

    • Mark this line
    • Hide this line
    • Copy this content line
  2. potsky closed this discussion on 11 Oct, 2014 06:37 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac