This is a bit odd and I wonder if anyone can shed any light on it....
I'm running 2 identical scripts on box A and box B - the scripts output flat ascii files.
Box A is NT Workstation 4 / PHP 4.0.6
Box B is NT server 4 / PHP 4.0.4
The script on box A uses chr(10) to output a line feed. If you view the file with notepad (from any machine) the file has seperate rows for each record.
Box B running the same script requires chr(13) and chr(10) in order to line up the data the same way - i.e. just using chr(10) does not create a new line in the file.
Box A's script is run from a browser.
Box B's script is run from the command line.
Any ideas?
Ta
Chris