Re: [PHP] Upload problem - PC, *nix, and Max EOL characters

2002-11-26 Thread Lee P. Reilly
t is binary safe. > > Matt > - Original Message - > From: Lee P. Reilly <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, November 26, 2002 4:09 PM > Subject: Re: [PHP] Upload problem - PC, *nix, and Max EOL characters > > > > &g

Re: [PHP] Upload problem - PC, *nix, and Max EOL characters

2002-11-26 Thread Matt Vos
No, fgets() reads to EOL, I use it all the time. fread() will read to EOF, if you let it, as it is binary safe. Matt - Original Message - From: Lee P. Reilly <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, November 26, 2002 4:09 PM Subject: Re: [PHP] Upload proble

Re: [PHP] Upload problem - PC, *nix, and Max EOL characters

2002-11-26 Thread Lee P. Reilly
> $size = strlen($filerow); > $row_split = preg_split("/\s+/", $filerow); > > $value1 = $row_split[0]; > $value2 = $row_split[1]; > $value3 = $row_split[2]; > } > > Matt > - Original Message - > From: Lee P. Reilly <[EMAIL P

Re: [PHP] Upload problem - PC, *nix, and Max EOL characters

2002-11-26 Thread Lee P. Reilly
Hi, Thanks for the reply. I appreciate your help. fgets() reads to the EOF; not the EOL. Is there something similar to fgets() that I can use? Perhaps where I can state explicity read the file until you encounter and EOL char? Cheers, Lee Matt Vos wrote: > Loop an fgets() > > i.e. > $fp = fope

Re: [PHP] Upload problem - PC, *nix, and Max EOL characters

2002-11-26 Thread Matt Vos
gt; To: <[EMAIL PROTECTED]> Sent: Tuesday, November 26, 2002 2:58 PM Subject: [PHP] Upload problem - PC, *nix, and Max EOL characters > Hi everyone, > > I have an application, where users can upload data files formatted as > follows: > > 0.0106375 686.601

[PHP] Upload problem - PC, *nix, and Max EOL characters

2002-11-26 Thread Lee P. Reilly
Hi everyone, I have an application, where users can upload data files formatted as follows: 0.0106375 686.60165.391 0.01147 606.46754.997 0.0122815 640.284 46.5355 0.0130753 668.396 39.3671 0