PHP Manual
dio_seek
Description
int dio_seek ( resource fd, int pos [, int whence] )The function dio_seek() is used to change the file position of the given file descriptor.
Parameters
fdThe file descriptor returned by dio_open().
posThe new position.
whenceSpecifies how the position
posshould be interpreted:SEEK_SET (default) - specifies that
posis specified from the beginning of the file.SEEK_CUR - Specifies that
posis a count of characters from the current file position. This count may be positive or negative.SEEK_END - Specifies that
posis a count of characters from the end of the file. A negative count specifies a position within the current extent of the file; a positive count specifies a position past the current end. If you set the position past the current end, and actually write data, you will extend the file with zeros up to that position.
Examples
Support PHPRO.ORG
Search
PHPRO.ORG Poll
Warning: Participation in PHPRO.ORG polls may incorrectly lead you to believe your opinions matter.

RSS Feed




