|
Posted by Heiko Richler on 01/24/07 09:47
PS:
Heiko Richler wrote:
> while($row = fgets($file, 4096)) {
fgets returns FALSE if an error occurs, so this may be better:
while(is_string($row = fgets($file, 4096)))
or
while(($row = fgets($file, 4096)) !== false)
> //read file line by line
Heiko
--
http://portal.richler.de/ Namensportal zu Richler
http://www.richler.de/ Heiko Richler: Computer - Know How!
http://www.richler.info/ private Homepage
Navigation:
[Reply to this message]
|