Page 1 of 1
new line with fwrite()
Posted: Fri Sep 20, 2002 10:16 am
by Artemus
Hello,
I am trying to write in a file two lines...
I use : fwrite($fp, "\n");
for going to the next line but it doesn't work...
what should I do?
Thanks..
Posted: Fri Sep 20, 2002 10:23 am
by nielsene
What operating system are you on? You may need to use some combination of \n's and \r's.
*nix wants \n's
Windows and Macs need a different set, which I don't remember off hand.
operating system... :-(
Posted: Fri Sep 20, 2002 10:37 am
by Artemus
For the development I use windows xp with Apache 1.3 runing.
I have uploaded the projet to the server which has Linux Red Hat with apache and everything work correctly now.
I should develop under linux...
Thanks...
Posted: Fri Sep 20, 2002 10:46 am
by nielsene
I think windows wants \r\n (or maybe flipped, I know it needs both)
I think mac is just \r