Re: reading newline line from socket

From: Date: Sun, 10 Dec 2000 04:39:25 +0000
Subject: Re: reading newline line from socket
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-40729@lists.php.net to get a copy of this message
> > 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

« previous php.dev (#40729) next »