|
Posted by d on 01/23/06 01:47
"Al" <alexrussell101@gmail.com> wrote in message
news:1137722075.518098.287090@o13g2000cwo.googlegroups.com...
>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.
>
No problemo ;)
[Back to original message]
|