Re: reading newline line from socket

From: Date: Mon, 11 Dec 2000 06:58:28 +0000
Subject: Re: reading newline line from socket
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-40794@lists.php.net to get a copy of this message
wrong newsgroup php.general is the right one -- "Timo Snellman" <timo.snellman@sonera.com> wrote in message news:Pine.LNX.4.05.10012100634080.4071-100000@rotta.tmt.tele.fi... > > > > > Okei I'm gone through all faqs, used search engines, search through this > > mailinglist archive and still didn't find answer to my problem. > > > > I don't paste code here since I believe most of you know what I'm talking > > about. I have this one server which uses UDP protocol, and I'll send for > > it one newline terminated string as command. It replies with one string > > BUT this string has newlines in it. > > > > Now I'm asking is it possible to read this string with PHP? > > > > I have done this with PERL. I was hoping to do it with PHP also but now > > I'm not sure is it possible. > > > > Okei my own add since I wasn't specific enough. fread function might > useful BUT content lenght varies and server doesn't send EOF. Lenght > can't be predicted. > > - Timo Snellman > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#40794) next »