Re: [PHP] [php] read/write error

[email protected] ("HELP!")
Newsgroups php.general
Message-ID <[email protected]>
ALSO TRYING 0X0A or A still no respond. its realy frustrating becuase
written or readiing is a simple straight foward

On Wed, Jun 10, 2009 at 3:51 PM, Robin Vickery <[email protected]> wrote:

> 2009/6/8 HELP! <[email protected]>
>
>> opening of the sorket is ok and writting LOGIN packet to the sorket is
>> also
>> ok but reading the response to know if the login is accepted or rejected
>> is
>> a not OK.
>
>
> Don't use fread() to read from sockets, use stream_get_contents(). Example
> 3 on the fread() manual page tells you why.
>
> -robin
>



-- 
www.bemycandy.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.