Hi,
Many great things are found in the manual. This for example in function.fsockopen.html
$fp = fsockopen ("www.php.net", 80, &$errno, &$errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs ($fp, "GET / HTTP/1.0\r\n\r\n");
while (!feof($fp)) {
echo fgets ($fp,128);
}
fclose ($fp);
}
This of course covers HTTP, but adapting it for Telnet should be simple.
Johan