NYCPHP Meetup

NYPHP.org

[nycphp-talk] telnet

csnyder chsnyder at gmail.com
Wed Mar 8 12:27:08 EST 2006


On 3/8/06, aaron <aaron at aarond.com> wrote:
> I have a php script that  I'd like to use to open a telnet connection,
> send a few telnet commands, then exit. I haven't done this type of
> connection before, and not sure what set of php functions to start with.
> Any suggestions?
>
> thanks,
> Aaron D.

If you can use ssh instead, check out http://us2.php.net/ssh2,
particularly http://us2.php.net/manual/en/function.ssh2-exec.php

ssh2 is a pecl extension to php, and still a little buggy, but better
than nothing.

Otherwise, a quick google brought up this...
http://www.geckotribe.com/php-telnet/


More information about the talk mailing list