RE: [PHP] Writing text files in Windows 2k
| From: | Adam Voigt | Date: | Mon, 10 Feb 2003 15:00:18 +0000 |
| Subject: | RE: [PHP] Writing text files in Windows 2k | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135065@lists.php.net to get a copy of this message | ||
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:adam@cryptocomm.com]
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 <http://www.php.net/fopen>
Er -- quoting from that very page:
Note: The mode may contain the letter 'b'. This is useful only on
systems
which differentiate between binary and text files (i.e. Windows.
It's
useless on Unix). If not needed, this will be ignored. You are
encouraged to
include the 'b' flag in order to make your scripts more portable
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
--
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