Re: Re: Reset STDIN pointer

From: Date: Thu, 03 Nov 2005 05:22:24 +0000
Subject: Re: Re: Reset STDIN pointer
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-225023@lists.php.net to get a copy of this message
On Wed, 2005-11-02 at 21:58 +0000, Curt Zirzow wrote: > The internal STDIN pointer? there is no such thing by the name of STDIN in > php. Sure there is, php://stdin. http://php.net/manual/en/wrappers.php.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. A file handle to php://stdin can be created with fopen(). http://php.net/manual/en/function.fopen.php rewind() works on file handles. http://php.net/manual/en/function.rewind.php -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/

« previous php.general (#225023) next »