You are here: Re: [PHP] Reset STDIN pointer « PHP « IT news, forums, messages
Re: [PHP] Reset STDIN pointer

Posted by "Richard Lynch" on 10/11/76 11:31

On Wed, November 2, 2005 2:20 pm, John Nichel wrote:
> There has to be a way to do this....reset the internal STDIN pointer
> to
> the begining but I'll be damned if I can find it.
>
> reset ( STDIN );
>
> returns an error.

No can do.

It's a stream, not a file.

You can't step in the same stream twice. :-)

Buffer it yourself, and read from your buffer.

If ANYTHING was going to work, it would be fseek(STDIN, 0); but I'll
bet it ain't gonna work.

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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