File System Function Library

Read about file system function library, The latest news, videos, and discussion topics about file system function library from alibabacloud.com

File system function Library: Ftruncate

Ftruncate (PHP4 >= 4.0rc1) ftruncate---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Truncated file becomes given length syntax: int ftruncate (int fp, int size) Description: Take a document index FP, and truncate the file to become size length, success is transmitted ...

File system function Library: Filectime

Filectime (PHP3, PHP4) filectime---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Gets the time syntax for the last change in the file: int filectime (string filename) Description: Returns the last time the file was changed, returns False if an error occurs, and returns a time of UN ...

File system function Library: fclose

Fclose (PHP3, PHP4) fclose---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Turn off the Open file metric syntax: int fclose (int fp) Description: Turn off file indicator FP. Success returns TRUE, and failure returns false. File metrics must be valid and are fopen (...

File system function library: Stat

Stat (PHP3, PHP4) stat---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Gets the information syntax for the file: array stat (string filename) Description: Aggregated file name filename file statistics. Returns the file's statistics, returns an array, the array has the following elements: ...

File system function Library: Fileatime

Fileatime (PHP3, PHP4) fileatime---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Time syntax for obtaining final access to files: int fileatime (string filename) Description: Returns the last accessed time of the file, returns False if an error occurs, returns the time is un ...

File system function Library: basename

Basehttp://www.aliyun.com/zixun/aggregation/11696.html ">name (PHP3, PHP4) basename---Returns a file name syntax that does not include a path: string BaseName (string path) Description: Gives a file name that contains a path, which returns a file name that does not contain a path. In Windows ...

File system function Library: Tmpfile

Tmpfile (PHP3 >= 3.0.13, PHP4 >= 4.0b4) tmpfile---&http://www.aliyun.com/zixun/aggregation/37954.html "> nbsp; Create temporary file syntax: int tmpfile (void) Description: Create a temporary file and unique name, this function returns a file index, like ...

File system function library: Link

Link (PHP3, PHP4) Link---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Establish strong link Syntax: Int link (string target, String link) Description: Link () Establish a strong (hard) link. Symlink () can create a flexible connection ...

File system function Library: Flock

Flock (PHP3 >= 3.0.7, PHP4) flock---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; File lock Syntax: BOOL Flock (int fp, int twist [, int wouldblock]) Description: PHP provides a hand-held (porta ...

File system function Library: Diskfreespace

Diskfreespace (PHP3 >= 3.0.7, PHP4 >= 4.0b4) diskfreespace---&http://www.aliyun.com/zixun/aggregation/ 37954.html ">nbsp; Returns the space syntax available in the directory: float diskfreespace (string directory) description ...

File system function Library: ReadFile

ReadFile (PHP3, PHP4) readfile---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Output file Syntax: int readfile (string filename [, int use_include_path]) Description: Reads the file and writes it to the standard output. Send back from the text ...

File system function Library: Ftell

Ftell (PHP3, PHP4) ftell---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Get file metrics read/write location syntax: int ftell (int fp) Description: Returns the location of the file indicator FP, and returns False if an error occurs. File metrics must be valid and are in fopen () or pops ...

File system function Library: RmDir

RmDir (PHP3, PHP4) rmdir---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Delete directory syntax: int rmdir (string dirname) Description: Try to delete the parameter dirname the specified directory, the deleted directory must be empty, and permission is allowed. Returns 0 if an error occurs. Reference ...

File system function library: filetype

FileType (PHP3, PHP4) filetype---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Get file type syntax: int filetype (string filename) Description: Returns the type of file, the possible values are fifo,char,dir,block,link,file ...

File system function Library: Delete

Delete (unknown) Delete---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; A fake project syntax: void Delete (string file) Description: This function is an invalid item, to delete the variable with unset () to delete the file with unlink (). Reference: Unlink () ...

File system function Library: Tempnam

Tempnam (PHP3, PHP4) tempnam---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Create a unique file name syntax: String Tempnam (String dir, string prefix) Description: Create a unique temporary file name in the specified directory, if the directory does not exist, t ...

File system function Library: is_writeable

Is_writeable (PHP3, PHP4) is_writeable---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Identifies whether the file name is writable file syntax: BOOL is_writeable (string filename) Description: If filename exists and is a writable text ...

File system function library: Files

File (PHP3, PHP4) file---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Read the entire contents of the file into the array syntax: Array file (string filename [, int use_include_path]) Description: Same as ReadFile (), different in this letter ...

File system function Library: Copy

Copy (PHP3, PHP4) copy---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Copy file Syntax: int copy (string source, String dest) Description: Copies a file, returns true if it succeeds, or returns false. Example: <?php & ...

File system function Library: Popen

Popen (PHP3, PHP4) popen---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Open file Syntax: int popen (String command, String mode) Description: Returns a file metric that is the same as the index returned by fopen (), except that it can only be one-way.

Total Pages: 4 1 2 3 4 Go to: Go

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.