Fseek
(PHP3, PHP4)
Fseek---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Moving file Metrics
Syntax: int fseek (int fp, int offset [, int whence])
Description:
Sets the location of the file indicator FP, which is specified by whence to increase the offset to the new position, whence has the following values:
Seek_set--Sets the new position equal to the bytes bit tuple
Seek_cur--Set new position for current position plus bytes
Seek_end--Set new to end of file plus bytes
If whence is not specified, it is assumed to be seek_set.
Success returns 0, otherwise it returns 1. Note: This move location is not considered an error if the file ends at the end.
This file metric cannot be used if fopen () is opening a file with "http://" or "ftp://".
Note: The whence parameter is added after the PHP 4.0rc1 version.
Reference: Ftell () Rewind ()