[thelist] writing to a file PHP (csv)

Liam Delahunty ldelahunty at britstream.com
Mon Dec 16 16:09:01 CST 2002


Andrew Maynes wrote:

/quote/
However it isn't putting the data in csv format (tab)?

$FileName="admin/email_list.txt";
		$fp = fopen($FileName, "a+");
		fputs($fp, "$cc,\n");
new line -------------------^
		fclose($fp);

/end/

you're writing one field $cc (I do hope that's not a credit card number in
plain text :P ) then putting in a comma and new line.
so you'd get:

line1,
line2,
line3,
etc...

what is it you want?

vb,
Liam




More information about the thelist mailing list