Hi,
1)When you use the following script the first line that returns the http header with the response code, how can I use this code to do a if statement
$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);
}
2) What responsecodes are there (where can I find a list) and what do they all do?
Thx loads for any help