Re: breaking fputs
| From: | (Richard Lynch) | Date: | Fri, 30 Jun 2000 21:55:44 +0000 |
| Subject: | Re: breaking fputs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4179@lists.php.net to get a copy of this message | ||
In article <3955BCC8.9450A6B3@netvision.net.il>, mosdoron@netvision.net.il
(moshe) wrote:
> when i use fputs() on fsockopen file, times i get loop, when the other
> side not sending
> \r\n\r\n in the end of the last string, but close the connection. how
> can i bypass it?
Maybe check for feof()?
It might be true if the connection gets closed and no last \r\n\r\n was sent...
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)