For the life of me i cannot get fsockopen() to work! i'm using:
<?
$fp = fsockopen("www.php.net", 80);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs ($fp, "GET / HTTP/1.0\n\n");
while (!feof($fp)) {
echo fgets ($fp,128);
}
fclose ($fp);
}
?>
(this is the example on php.net)
it doesnt even attempt to connect, ($errno is 0) so im guessing there is some sort of coniguration needed or i need to enable something?
Can anyone help?
Thanks in advance, Ad...
</ad>