RE: [PHP] Re: fgets() question?

2002-12-23 Thread Ford, Mike [LSS]
> -Original Message- > From: Noel Wade [mailto:[EMAIL PROTECTED]] > Sent: 22 December 2002 09:44 > > > A blank line should return the newline (\n or \r\n), > according to > > http://www.php.net/manual/en/function.fgets.php. Also try > using '===' (3 = > > signs) as the operator, whic

[PHP] Re: fgets() question?

2002-12-22 Thread Noel Wade
> A blank line should return the newline (\n or \r\n), according to > http://www.php.net/manual/en/function.fgets.php. Also try using '===' (3 = > signs) as the operator, which enforces type checking on a comparison). Yes or no: $foo == FALSE === 0; ??? Right now I'm just doing if($foo) A

[PHP] Re: fgets() question?

2002-12-22 Thread Steve Yates
"Noel Wade" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > When you use $foo = fgets($fp_file); it appears that a blank line ends up > looking exactly like a FALSE ("failed to read") return value... A blank line should return the newline (\n or \r\n), acco