RE: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Adam Voigt
Yes, I'm aware of that, if you would have read my reply 10 seconds after I sent the first one, I corrected myself. On Mon, 2003-02-10 at 09:25, Ford, Mike [LSS] wrote: -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED]] Sent: 10 February 2003 14

Re: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Chris Hewitt
Joe Njeru wrote: Hi All The following is the text file generated. I'm runing on Windows 2k spack 3, When I open it in Excell it gives me the data but not seperated into lines. Do you have any suggestions. It does for me in Excle 97 SP2, but I suspect there should be more lines than there are

RE: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Ford, Mike [LSS]
-Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED]] Sent: 10 February 2003 14:13 Precisely where did you get the "b" in your second parameter to fopen? I didn't see it on the fopen manual page at: http://www.php.net/fopen Er -- quoting from t

Re: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Adam Voigt
Doh, doh, doh! Just saw "b" was allowed for binary on the fopen page. Never mind. On Mon, 2003-02-10 at 09:13, Adam Voigt wrote: Precisely where did you get the "b" in your second parameter to fopen? I didn't see it on the fopen manual page at: http://

Re: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Adam Voigt
Precisely where did you get the "b" in your second parameter to fopen? I didn't see it on the fopen manual page at: http://www.php.net/fopen If you just want to write to the file and not read it, try changing the second parameter to just "w". On Mon, 2003-02-10 at 03:34, Joe Njeru wr

Re: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Chris Hayes
I need to write some data to a text file but when I use $this->ao_file_handle = fopen($this->ao_file_name,"ab"); $str_txt.= "\n"; fwrite($this->ao_file_handle,$str_txt); It does not display the new line. I saw somwhere that for DOS files you need to use ASCII LF and CR. Which I did. It still