Types and attributes of files that PHP files operate on

Source: Internet
Author: User
1. File types
With Linux as a model, only file, dir or unknow three types can be obtained in Windows
Under Linux/unix, block, Char, dir, FIFO, file, link, unknown seven types
FileType ("directory or file name") Get file type
Is_dir--Determine if a given file name is a directory
Is_executable--Determine if the given file name is executable
Is_file--Determine if the given file name is a normal file
Is_link--Determine if the given file name is a symbolic connection
Is_readable--to determine if a given file name is readable
Is_uploaded_file--Determine if the file was uploaded via HTTP POST
Is_writable--Determines whether a given file name can be written
2. Properties of the file

File_exists ();

Whether the file exists

FileSize ();

File size

Is_readable ();

Whether the file is readable

Is_writeable ();

Whether the file is writable

Filectime ();

File creation time

Filemtime ();

File modification Time

Fileactime ();

Last file access time

Stat ();

File information

The above describes the PHP file operation of the type and attributes, including aspects of the content, I hope to be interested in PHP tutorial friends helpful.

  • 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.