Page 1 of 1

sockets and telnet

Posted: Fri Aug 22, 2003 5:45 am
by devork
I am try to connect to a server by php function
socket_connect("server",4433)
at port 4433
and then when it connect telnet gives some text
I am trying to read that text by socket_read(....) on client side but no output
any help...?

Posted: Fri Aug 22, 2003 8:43 am
by devork
i have done something about telnet
but one more thing
ok what shoud i use
fwrite($resource,"Action: Login")
what sequence of \n, \r shoud i use after ...Login to write it to that socket :wink:

Posted: Fri Aug 22, 2003 8:57 am
by BigE
You might want to check out the Telnet RFC That will explain to you what to do when you connect to a telnet server... I'm not familiar with that protocol, otherwise I'd help you out. :)

Posted: Sat Aug 23, 2003 12:22 am
by devork
it is resolved
pattern is \r\n