You are here: Re: How to use fgets() with a NNTP server? « PHP Programming Language « IT news, forums, messages
Re: How to use fgets() with a NNTP server?

Posted by Tim Van Wassenhove on 11/18/26 11:44

On 2006-04-07, test <test@test.test> wrote:
> I am using fgets() to recieve an article from a NNTP server.
> The articles end with:
> or in other words: <crlf>.<crlf>
> while ($t != ".") { // this doesn't work, nor does ".\n"

So you only tested with . and .<lf>
What happens if you try to read until ".\r\n"?
(and the previous line was "\r\n")


--
Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be>

 

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

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