how can I use the response I get out the script below for an if (responsecode = number){} statement??
I now know what codes there are from my previous question about this but I still don't know how to use the responsecodes.
[script]
$fp = fsockopen ("www.shell.com", 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);
}
[/script]
Thx