hii am not a expert of php....
but stil am try to make some srcipt...
am trying to login on some messenger using php socket function.
Am able to coonect server... k am explaining with example....
xxx is chating server..
and my username: abc123
password: www
first i explain you how server react when i try to login in.
First i send my username to server.
then server send me some 8 bytes random code.
Next step is i have to send my password to server back