Just a litlle newbie question..
I have this code to get the HEAD of a file, it works fine on my own
host.
But when I try at my ISP host it fails.
Is it because my ISP uses a firewall
and how do I make a workaround for this ?
$fp = fsockopen($host, 80, &$errno, &$errstr, 30);
fputs($fp,"HEAD $urlcheck HTTP/1.1\r\n");
fputs($fp,"HOST: dummy\r\n");
fputs($fp,"Connection: close\r\n\r\n");
while (!feof($fp)) {
$test = sprintf("%s%s", $test, fgets($fp,128));
}
Thanks for any replies !!