Re: Writing text files in Windows 2k
| From: | Adam Voigt | Date: | Mon, 10 Feb 2003 14:13:17 +0000 |
| Subject: | Re: Writing text files in Windows 2k | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135056@lists.php.net to get a copy of this message | ||
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 wrote:
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 still does not display the
new line.
Thanks in advance
Joe Njeru
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt (adam@cryptocomm.com)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc