I'm dumb - \n not working
Posted by: James (---.ipt.aol.com)
Date: January 23, 2006 09:36PM

I have a piece of simple PHP -

$f=fopen("name.txt", a);
$string="dave";
fwrite($f, $string."\n"winking smiley;

but the '\n' does not insert a new line in the text file. Why?

I've been staring at this problem for so long but I just can't see the answer! It's such a simple thing!

Please help. I think I'm going crazy.

James

Options: ReplyQuote


Sorry, only registered users may post in this forum.