|
Posted by Al on 01/20/06 03:54
d wrote:
> You can also use fsockopen(), too:
>
> $host="google.com";
> $buffer="";
> $fp=fsockopen($host, 80);
> fwrite($fp, "GET / HTTP/1.0\r\nHost: $host\r\n\r\n");
> while (!feof($fp)) $buffer.=fread($fp, 4096);
> fclose($fp);
>
> that doesn't need any special flags set, or external modules.
My bad, I was under the impression that fsockopen() was under the
fopen() (i.e. requiring the whole url_fopen thingy set) groupd of
commands. I should have read up on it better.
Navigation:
[Reply to this message]
|