downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

rmdir> <rename
Last updated: Wed, 22 Jul 2009

view this page in

rewind

(PHP 4, PHP 5)

rewind — Spoelt de positie van een bestands pointer terug

Beschrijving

bool rewind ( resource $handle )

Zet de bestands positie indicator van handle terug naar het begin van de bestands stream.

Geeft TRUE terug bij succes, FALSE indien er een fout is opgetreden.

De bestands pointer moet geldig zijn, en moet verwijzen naar een bestand dat succesvol geopend is door fopen().

Note: Als je een bestand hebt geopend in toevoeg ("a") mode, wordt alle data die je schrijft aan het einde toegevoegd, ongeacht de positie in het bestand.

Zie ook fseek() en ftell().



rmdir> <rename
Last updated: Wed, 22 Jul 2009
 
add a note add a note User Contributed Notes
rewind
MagicalTux at kinoko dot fr
27-Nov-2007 07:53
Note that rewind($fd) is exactly the same as fseek($fd, 0, SEEK_SET)

rewind() just moves the location inside the file to the beginning, nothing more. Check if your stream is "seekable" before planning to use fseek/rewind.
berndt at www dot michael - berndt dot de
05-May-2005 09:27
evan at ozhiker dot no_spam dot com
05-Aug-2004 05:56
As with fseek(), the rewind() function may not be used on file pointers returned by fopen() if they use the "http://" or "ftp://" formats.

rmdir> <rename
Last updated: Wed, 22 Jul 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites