You are here: Re: extract website into string « PHP Programming Language « IT news, forums, messages
Re: extract website into string

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 ;)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация