AlexMihov
7/28/2014 - 6:25 AM

From http://php.net/manual/en/function.file-put-contents.php

    $file = 'log.txt';
    // Open the file to get existing content
    $current = file_get_contents($file);
    // Append a new person to the file
    $current .= "I did it!\n";
    // Write the contents back to the file
    file_put_contents($file, $current);