-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joe Wollard wrote:
> Use the file() function, it will read a file then return each line as
> a new element in an array.
> http://php.net/file

This will not read the file "one line at a time". Try http://php.net/fgets.

- -Stut

> On 7/23/06, Benjamin Adams <[EMAIL PROTECTED]> wrote:
>> how would I read a file one line at a time:
>>
>> <?php
>> if($lines < $alllines){
>>     $newline .= $lines;
>> }
>> ?>
>>
>> something like that, I'm cofused on if I use fread, something  which
>> will do one line at a time?
>>
>> -- 
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEw9uX2WdB7L+YMm4RAvR3AJ4rsGP3ZUGBRuoEiv8ilwB9wzyu1wCggOm6
6ctTQ1Xufn0rStHFLcyOFB0=
=dGhv
-----END PGP SIGNATURE-----

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to