File system function Library: fseek

Source: Internet
Author: User
Keywords fseek php Chinese function manual file system function library
Tags aliyun file file system function library function function library html http php

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 ()

Related Article

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.