Connect and send string

hello,

Does anyone know how to connect to a device eg. 203.xx.xxx.xxx and when connect send a ASCII string to it. Then be able to receive any data it sends back?

I know it works in Telnet however I don't know if there is a way in php of using this.

Anyone got any ideas how to do this?

Thanks.
[334 byte] By [aaronking] at [2007-11-20 8:25:06]
# 1 Re: Connect and send string
Take a look at this ( http://us.php.net/manual/en/function.fsockopen.php). You should be able to work with ASCII with the fsock.
PeejAvery at 2007-11-10 3:56:19 >