Skip to content

Instantly share code, notes, and snippets.

@jsoningram
Created March 25, 2016 04:29
Show Gist options
  • Save jsoningram/b9afe1f0272e55b06675 to your computer and use it in GitHub Desktop.
Save jsoningram/b9afe1f0272e55b06675 to your computer and use it in GitHub Desktop.
<?php
// write form submissions to text file.
// be sure to set permissions of text file to 750.
$leads = fopen('leads.txt', 'a') or die('Unable to process that request');
$txt = date(DATE_RFC2822);
$txt .= PHP_EOL;
$txt .= $body;
fwrite($leads, $txt . PHP_EOL . PHP_EOL);
fclose($leads);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment