title: telnet connection using PHP
body: <p>I need to write a PHP script to telnet to a router, run a command and fetch the results. does anyone know a telnet connection library in PHP?</p>
  
  <p><strong>Update:</strong> This request (as is obvious) was for a long time ago. In the end I had to write the client library that I needed myself. The code for this library (and many more modules) is open source and available on <a href="https://github.com/farzadghanei/POLlib/blob/master/Parsonline/Network/Telnet.php" rel="noreferrer">github</a>.
  Thanks everyone for your answers.</p>