Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- UNIX/Windows text file compatibility
- Olivier Laurent
February 28, 2005, 12:55 pm
rate this thread
I guess it's a bit off topic but my script is written in PHP so I
guess somebody out there could help me.
I'm facing the well known issue between windows and UNIX related OS.
The file format is crucial. The file is made on a linux box and as to
be parsed on a windows box by a commercial software (so I cannot play
with the code on that side).
I'm having a problem to mark the end of lines.
"\n" as you all know doesn't pass well on Windows.
How could I replace this one:
fwrite($fichier, "this is a new line\n");
to make it works with windows?
- Tim Van Wassenhove
February 28, 2005, 9:05 pm