Created
March 25, 2016 04:29
-
-
Save jsoningram/b9afe1f0272e55b06675 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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