Skip to content

Instantly share code, notes, and snippets.

@FelisPhasma
Created March 21, 2015 17:27
Show Gist options
  • Save FelisPhasma/96a66c9b22f763a43a95 to your computer and use it in GitHub Desktop.
Save FelisPhasma/96a66c9b22f763a43a95 to your computer and use it in GitHub Desktop.
<?php
$file = 'records.log';
$person = "John Smith\n";
file_put_contents($file, $person, FILE_APPEND | LOCK_EX);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment