RE: [PHP] read($sock, $buf, $n) reads nothing on port 23
| From: | Don Read | Date: | Fri, 11 May 2001 02:17:53 +0000 |
| Subject: | RE: [PHP] read($sock, $buf, $n) reads nothing on port 23 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52383@lists.php.net to get a copy of this message | ||
On 11-May-01 Grishick wrote:
> I'm trying to make a telnet client with php. The strange thing happens:
> "read" does not get anything from socket if I connect to port 23 (telnet),
> but with other ports (21, 80) it works OK.
> Grishick.
> grisha@kasenna.com
>
Telnet is a bit more complex than that, look for RFC854 at
http://www.cis.ohio-state.edu/Services/rfc/rfc.html
Regards,
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.