<?php
$fp = fsockopen ("www.example.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs ($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\n\r\n");
while (!feof($fp)) {
echo fgets ($fp,128);
}
fclose ($fp);
}
?>
(Taken from http://uk2.php.net/fsockopen)
I have determined that this opens a socket on port 80 on the domain name www.example.com. What would $errno and $errstr be? And, also, what does the 30 mean?