error_reporting (E_ALL);
echo "TCP/IP Connection
\n";
$fp = fsockopen ("www.pellesoft.se", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)
\n";
} else {
fputs ($fp, "GET / HTTP/1.0\r\nHost: http://www.pellesoft.se\r\n\r\n");
while (!feof($fp)) {
echo fgets ($fp,128);
}
fclose ($fp);
}
?>