<?php
echo "<title>Good bye: $fEmail</title>";
$fEmail = @$_POST["email"];
$values = "$fEmail\r\n";
$fp = @fopen("email.data", "w") or die("Couldn't open the file for writing!");
$numBytes = @fwrite($fp, $values) or die("Couldn't write values to file!");
@fclose($fp);
echo "Your E-Mail has been scheduled for removal. Thank you.";
?>
The above code was designed to write emails to a text file so my users can unsubscribe from the mailer.
It works kinda... hehe What the problem is it only writes one email to the file the from there on out
it just over writes the email!
What I need it to do is:
email.data contents:
Test@32323.com
Test1@454545.com
yoyo@testthis32434.com
One email per line and no way to overwrite eachother.
Thanks in advance!
-K