Re: [PHP] Grabbing data up to \n

2001-07-27 Thread Wagner Tomy
5:14 PM Subject: [PHP] Grabbing data up to \n I am grabbing lines of a file using: $buffer = fgets($fd, 4096); How can I grab the line up to \n or does this do it? Like if the line is only a few characters, it will only grab up to \n? And if the line up to the \n is a huge message will I stil

[PHP] Grabbing data up to \n

2001-07-27 Thread Jeff Lewis
I am grabbing lines of a file using: $buffer = fgets($fd, 4096); How can I grab the line up to \n or does this do it? Like if the line is only a few characters, it will only grab up to \n? And if the line up to the \n is a huge message will I still be able to grab all of it with the 4096? J