Re: fsockopen help!

From: Date: Fri, 25 Aug 2000 04:04:30 +0000
Subject: Re: fsockopen help!
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-13572@lists.php.net to get a copy of this message
"TaoX { Brian Hinson; }" wrote: > This is possible solely with PHP... though it will take a little programming > and knowledge of whatever protocol you are programming for... for instance.. > first you need to set blocking if you want functions to wait for data if > there is none. Next you need to write get line functions for your protocol > as php fgets and others won't work, or atleast I can't get them to work and > thats because say for instance the smtp protocol... each line end with CRLF > control-linefeed.. so I write a get line that reads until these two chars > are detected and then I parse the line and send back replies accordingly and > wait for responses.... > > Hope this helps. > TaoX > > Regards, > > > > Jsoeph > This problem has got me so messed ot that I can't even spell my own name anymore LOL :-) Can anyone help me write a alternate function for fgets in php? I haven't got a clue where to start, fgets should be able to handle what im trying to do as its only TCP and the packets im sending are plain ASCII text, I don't understand what the big deal is? Regards Joseph

« previous php.general (#13572) next »