Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: How to specify end of read()


Message #1 by Yi Zheng <Yi.Zheng@s...> on Wed, 20 Jun 2001 08:57:04 -0400
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


  Return to Index