PHP4 User Manual: function-fseek. Fseek (PHP3, PHP44.0.0) fseek -- locates the pointer description intfseek (intfp, effecffset [, intwhence]) of a file and sets a file indicator for the reference fp of this file. This new bit fseek
(PHP 3, PHP 4> = 4.0.0) fseek -- Locate the pointer description of a file
Int fseek (int fp, int offset [, int whence])
Set a file indicator for the reference fp of this file. The new position starts from the specified position of the file in bytes specified by offset or by whence. For whence values, see:
SEEK_SET-starting from the file; SEEK_CUR-starting from the current location; SEEK_END-starting from the end of the file.
If whence is not specified, the default value is SEEK_SET.
If the call succeeds, 0 is returned. otherwise,-1 is returned. Note that it is not an error to locate the end letter EOF.
If you use the "http: //" or "ftp: //" format of the website construction server script class \ phpphp user manual fancyfunction.fopen.html> fopen (), you cannot use this function.
Note: The whence parameter must be used in PHP 4.0 RC1 or later versions.
See ftell () and rewind ().
Http://www.bkjia.com/PHPjc/532345.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/532345.htmlTechArticlefseek (PHP 3, PHP 4> = 4.0.0) fseek -- specifies a file's pointer description int fseek (int fp, int offset [, int whence]) set a file indicator for the reference fp of this file. This new bit...