PHP4 User Manual: function-fseek_PHP tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.