Reply to Re: Reset STDIN pointer

Your name:

Reply:


Posted by Curt Zirzow on 11/02/05 23:58

On Wed, 02 Nov 2005 15:20:46 -0500, 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.

The internal STDIN pointer? there is no such thing by the name of STDIN in
php.

According to http://php.net/reset it epxects an array not a file handle,
so the error would be expected.

I might be wrong but stdin is not seekable so i doubt it is even possble
to put the file handle back to the beginning.

What are you exactly trying to do to move the stdin pointer to the
beginning?


Curt.
--
http://news.zirzow.dyndns.org/

[Back to original 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

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