RE: [PHP] Last time Append line to text file

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002, Ford, Mike [LSS] wrote: >> From: Miguel Cruz [mailto:[EMAIL PROTECTED]] >> >> This side effect is not mentioned at >> http://www.php.net/manual/en/language.operators.logical.php where it >> imples that the only difference is precedence. I'd say this is a bug >>

RE: [PHP] Last time Append line to text file

2002-04-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Miguel Cruz [mailto:[EMAIL PROTECTED]] > Sent: 29 April 2002 05:34 > > On Sun, 28 Apr 2002, Richard Emery wrote: > > The answer is: > > $file_pointer = fopen('/public_html/emails.txt', "a") or exit; > > > > The " || " is a binary operation. You want "or",

RE: [PHP] Last time Append line to text file

2002-04-28 Thread Martin Towell
D] Subject: Re: [PHP] Last time Append line to text file On Sun, 28 Apr 2002, Richard Emery wrote: > The answer is: > $file_pointer = fopen('/public_html/emails.txt', "a") or exit; > > The " || " is a binary operation. You want "or", the logi

Re: [PHP] Last time Append line to text file

2002-04-28 Thread Miguel Cruz
On Sun, 28 Apr 2002, Richard Emery wrote: > The answer is: > $file_pointer = fopen('/public_html/emails.txt', "a") or exit; > > The " || " is a binary operation. You want "or", the logical operation. Yeah, Perl habit. But || is logical too (it's | that's binary), it just seems to result in

Re: [PHP] Last time Append line to text file

2002-04-28 Thread Richard Emery
The answer is: $file_pointer = fopen('/public_html/emails.txt', "a") or exit; The " || " is a binary operation. You want "or", the logical operation. - Original Message - From: Rodrigo <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; 'Miguel Cruz' <[EMAIL PROTECTED]>; 'John Holmes' <[EMA