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

[PHP] Writing text files in Windows 2k

2003-02-10 Thread Joe Njeru
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. Joe Njeru, Nairobi, Kenya. begin 666 veh_fuel_iss_hist_rpt.csv M,C P,BTQ,2TP,CM!,C R,3DV.U!%5%)/3" M(%-54$5

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

[PHP] Writing text files in Windows 2k

2003-02-10 Thread Joe Njeru
Thanks for the tip I want to export a report to excell and a legacy system that allow csv file import for incorporation into the financial system. Joe Njeru Nairobi, Kenya. "Where else can you flyfish for trout on the Equator!" -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

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

[PHP] Writing text files in Windows 2k

2003-02-10 Thread Joe Njeru
Hi All, 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