Re: Upload problem - PC, *nix, and Max EOL characters
| From: | Lee P. Reilly | Date: | Tue, 26 Nov 2002 21:09:08 +0000 |
| Subject: | Re: Upload problem - PC, *nix, and Max EOL characters | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126176@lists.php.net to get a copy of this message | ||
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 = fopen($file)
> while ($filerow = fgets($fp,1024)) /* Read 1024 bytes or to EOL, whichever
> is first) */
> {
--
Lee P. Reilly, ms:G758
Szilard Resource, tel:505-665-7025
Bioscience Division,
SM-30 Bikini Atoll Rd,
Los Alamos National Laboratory, mailto:lreilly@lanl.gov
Los Alamos, NM 87545. http://home.lanl.gov/lreilly
"Quidquid latine dictum sit, altum viditur"
-._ _.--'"
'--._ _.--'"'--._
_.--'"`'--._ _
'-:.'||"':-. '-:.'||"':-.
'-:.'||"':-. '.` : '.
'. '. | | | |'. '. | | | |'. '. | | | |'. '.:
'. '.
: '. '.| | | | '. '.| | | | '. '.| | | | '. '.
: '. `.
' '. .:_ | :_.' '. .:_ | :_.' '. .:_ |
:_.' '. .' `.
-..,..-' -..,..-' -..,..-'
`