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

2009-06-12 Thread HELP!
I can not get the stream_get_contents() to work. it's returning empty. If you have a login details ALOGINPASS 1A cant you just fwrite($ft, ALOGINPASS 1A); or do you need to add other things what is the meaning of this string GET / HTTP/1.0\r\nHost: www.example.com\r\nAccept

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

2009-06-12 Thread Robin Vickery
Hello Mr HELP! 2009/6/12 HELP! izod...@gmail.com I can not get the stream_get_contents() to work.  it's returning empty. Is that simply because there's nothing to read from the socket? If you have a login details ALOGINPASS 1A cant you just fwrite($ft, ALOGINPASS 1A); or do you need to add

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

2009-06-10 Thread Robin Vickery
2009/6/8 HELP! izod...@gmail.com 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()

[PHP] [php] read/write error

2009-06-08 Thread HELP!
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. please help $port =xx; $ip =xx.xx.xxx; $timeout = 30; $start =L; $Login = user ; $Password =pass ; $session = ;