show_connect_error=1; //$telnet->use_usleep=1; // if the first argument to Connect is blank, // PHPTelnet will connect to the local host via 127.0.0.1 $result = $telnet->Connect(BRAS_HOST,BRAS_ADMIN,BRAS_PASS); dmp("Telnet connect returns: $result");echo '
'; if ($result ==0) { $telnet->DoCommand('enable', $result); dmp($result); sleep(1); $telnet->DoCommand('show subscribers username user@isp', $result); dmp($result); } $telnet->Disconnect(); exit;