You are here: Re: [PHP] Re: stream_set_timeout() stream_get_meta_data() etc... « PHP « IT news, forums, messages
Re: [PHP] Re: stream_set_timeout() stream_get_meta_data() etc...

Posted by Skippy on 02/10/05 21:19

On Wed, 09 Feb 2005 13:28:47 -0500 Al <news@ridersite.org> wrote:
> Here is the code I ended up with, I left some test stuff included so
> anyone who may need it has a good start.

Oh, and another thing: if anybody's going to implement this using sockets
instead of fopen(), make sure to send the header "Connection: close" in the
request to the remote server. These days most servers implement HTTP 1.1,
which activates persistent connections by default ie. you'll never get EOF
and you'll always time out. I'm not sure how fopen() overcomes this, it
either has other means of detecting that the request was answered or it
uses "Connection: close" too.

--
Skippy - Romanian Web Developers - http://ROWD.ORG

 

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

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