A TELNET client class in PHP