> -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
> 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
"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
Khalid El-Kary wrote:
> hi,
> i want to open a remote file using fopen() i tried both of these ways
>
> $filename="http://www.domain.com/filename.txt";;
> $file=fopen($filename,"r");
> $filecontents=fread($file,filesize($filename));
>
> this one didn't work because it's apparent that the file isn
4 matches
Mail list logo