Hello,
from php.net's manual:
There is a 4th (documented in CVS) parameter for read(),int type, which
takes these three constants as value:
PHP_SYSTEM_READ - use the system read()
PHP_BINARY_READ - binary safe read() (same as PHP_READ_SYSTEM)
PHP_NORMAL_READ - Default. Reading stops at \n or \r.
Keep on truckin',
Nik
> -----Original Message-----
> From: Yi Zheng [mailto:Yi.Zheng@s...]
> Sent: Wednesday, June 20, 2001 5:57 AM
> To: professional php
> Subject: [pro_php] How to specify end of read()
>
>
> After a socket is established using socket(AF_INET, SOCK_STREAM, 0)
> and connected using connect(...), how to specify that I want to read a
> string up until \r\n or any other delimiters? Thanks.
>
> Yi