: This article mainly introduces the types and attributes of PHP file operations. For more information about PHP tutorials, see. 1. file type
In Linux, only file, dir, and unknow types can be obtained in Windows.
In Linux/Unix, there are seven types: block, char, dir, fifo, file, link, and unknown.
Filetype ("directory or file name") to obtain the file type
Is_dir -- determine whether the specified file name is a directory
Is_executable -- determines whether a given file name can be executed
Is_file -- determine whether a given file name is a normal file
Is_link -- determine whether a given file name is a symbolic connection
Is_readable -- determine whether the given file name is readable
Is_uploaded_file -- determines whether the file is uploaded through http post.
Is_writable -- determines whether a given file name can be written
2. file attributes
File_exists ();
Whether the file exists
Filesize ();
File size
Is_readable ();
Whether the file is readable
Is_writeable ();
File writable?
Filectime ();
File creation time
Filemtime ();
File modification time
Fileactime ();
Last file access time
Stat ();
File information
The above describes the types and attributes of PHP file operations, including the content, and hope to be helpful to friends who are interested in PHP tutorials.