PHP4 User Manual: Function -> FSeek

zhaozj2021-02-08  238

FSeek

(PHP 3, PHP 4> = 4.0.0) FSeek - Pointer to locate a file

description

Int fseek (int FP, int offset [, int imence])

Set the file indicator for this file. This new location is specified from the file to be specified by the OFFSET in bytes, or starts with the location specified by when. Whence's value:

Seek_set - Starting from the file; seek_cur - from the current location; seek_end - Starting from the end of the file.

If the manne is not specified, the default is seek_set.

Success, return 0; otherwise, return -1. Note that positioning to ending EOF is not an error.

This function cannot be used if the pointer returned by "http: //" format fopen () cannot be used.

Note: The regard parameter must be used in the version of PHP 4.0 RC1.

See FTELL () and Rewind ().

转载请注明原文地址:https://www.9cbs.com/read-3436.html

New Post(0)