Thanks Bonesnap,
I may have misunderstood the purpose of this function:
file_put_contents($filename, $email, FILE_APPEND);
but it is my understanding that the "FILE_APPEND" flag will check to see if it is already listed in the file, if not, add it, if it is, overwrite it. However my knowledge of php is very introductory and if that code is wrong, what would you suggest for fix it.
Additionally, the email addresses are adding to the file I have set up, although like bradgrafelman mentioned earlier, they are running together and not seperated on each line. The code I have for that is this:
$file = fopen('../../../EmailIndex.txt', 'ab');
fwrite($file, "$email\n");
fclose($file);
and
file_put_contents("../../../EmailIndex.txt", "$email\n", FILE_APPEND);
These two segments of code are virtually the same, but neither writes the data to the file on seperate lines.
Thanks again for you input
-tama198-