i already try one script To make a telnet connection with a Cisco router. i have try it n found error and can't understand it.plz,.explain to me...

[HTML]
PHP Code:
<?php 

//$value1=$_POST['text'];
$ip=$_POST['ip'];
$port=$_POST['port'];

$cfgServer $ip;  //IP of your router
$cfgPort    $port;                //port, 22 if SSH
$cfgTimeOut 10;

$usenet fsockopen($cfgServer$cfgPort, &$errno, &$errstr$cfgTimeOut);
?>
<textarea name="ios" cols="50" rows="10" id="ios">
<?php
if(!$usenet)
        {
        echo 
"Connection failed\n";
        exit();
        }
else
        {
        echo 
"Connected\n";
        
fputs ($usenet"toto\r\n");
       
fputs ($usenet"en\r\n");
       
fputs ($usenet"tutu\r\n");
       
fputs ($usenet"exit\r\n");
        while (!
feof($usenet))
                {
                echo 
". ".fgets($usenet128)."\n";
                }
        }
?>
   </textarea>
[HTML]