Re: [PHP] Reset STDIN pointer

2005-11-08 Thread Richard Lynch
On Wed, November 2, 2005 2:20 pm, John Nichel wrote: > There has to be a way to do thisreset 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

Re: [PHP] Reset STDIN pointer

2005-11-02 Thread Greg Donald
On Wed, 2 Nov 2005, John Nichel wrote: There has to be a way to do thisreset the internal STDIN pointer to the begining but I'll be damned if I can find it. reset ( STDIN ); returns an error. You can use rewind() on an fopen()'d php://stdin. -- Greg Donald Zend Certified Engineer MyS