note 34551 added to function.fsockopen

From: Date: Wed, 30 Jul 2003 15:49:20 +0000
Subject: note 34551 added to function.fsockopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-53015@lists.php.net to get a copy of this message
If you want to connect via Telnet, it could be useful to set also the Terminal Type (some OS requires it) $IAC = chr(255); /* interpret as command: */ $SB = chr(250); /* interpret as subnegotiation */ $SE = chr(240); /* end sub negotiation */ $TELOPT_TTYPE = chr(24); /* terminal type */ $TELQUAL_IS = chr(0); /* Option is... */ //sending Terminal Type fwrite($sock,$IAC.$SB.$TELOPT_TTYPE.$TELQUAL_IS.'vt100'.$IAC.$SE); ciao Sergio Paternoster ---- Manual Page -- http://www.php.net/manual/en/function.fsockopen.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34551 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34551&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34551&report=yes

« previous php.notes (#53015) next »