Re: telnet or ssh in PHP (Curl?)
| From: | Bas van Rooijen | Date: | Mon, 17 Dec 2001 18:53:43 +0000 |
| Subject: | Re: telnet or ssh in PHP (Curl?) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77979@lists.php.net to get a copy of this message | ||
Hi Bas!
SSH is possible but complicated.
For telnet, simply use fsockopen() (default telnet port is 23).
This returns a filepointer so you can read/write like as a regular file.
greets,
Bas van Rooijen
On Mon, 17 Dec 2001 17:28:04 +0100, Bas van Schaik wrote:
>Hello everybody!
>
>I need some help. I want to use a SSH (or, if SSH is impossible, telnet)
>connection in PHP. But I can't find anything about it. The only thing about
>telnet in the PHP manual (English), is that Curl supports it, but how? Tanks
>in advance for all replies!
>
>Bas
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>