note 79160 added to function.fsockopen
| From: | dali at dali dot net dot nz | Date: | Wed, 14 Nov 2007 01:13:38 +0000 |
| Subject: | note 79160 added to function.fsockopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132245@lists.php.net to get a copy of this message | ||
After several days of trying to get telnet going from php 5.2, i've come up with http://www.dali.net.nz/Telnet.class.php.txt
based on the one found at http://cvs.adfinis.ch/cvs.php/phpStreamcast/telnet.class.php
example usage:
<?php
$telnet = new Telnet('telnethost.example.com');
$telnet->login('username', 'password');
echo $telnet->exec('ifconfig') . "\n";
echo $telnet->exec('ls -lh') . "\n";
$telnet->disconnect();
?>
----
Server IP: 202.89.58.1
Probable Submitter: 203.109.131.1
----
Manual Page -- http://www.php.net/manual/en/function.fsockopen.php
Edit -- https://master.php.net/note/edit/79160
Del: integrated -- https://master.php.net/note/delete/79160/integrated
Del: useless -- https://master.php.net/note/delete/79160/useless
Del: bad code -- https://master.php.net/note/delete/79160/bad+code
Del: spam -- https://master.php.net/note/delete/79160/spam
Del: non-english -- https://master.php.net/note/delete/79160/non-english
Del: in docs -- https://master.php.net/note/delete/79160/in+docs
Del: other reasons-- https://master.php.net/note/delete/79160
Reject -- https://master.php.net/note/reject/79160
Search -- https://master.php.net/manage/user-notes.php