This one might be easy...but I'm out of places to look or ideas.
I'm writing a vCard creation script, and as part of the vCard standard I need to actually write \n on a line. Here is a sample of my code:
fwrite($newvcf,"ADR;type=HOME;type=pref:;;$address\n$address2;$city;$state;$zip;\n");
as you can see, I have a \n in there...that actually returns a line break in the text file instead of printing the \n character to the text file. This basically destroys the address information after the $address variable. Any ideas?