Home  >  Article  >  Backend Development  >  What are the commonly used php file functions?

What are the commonly used php file functions?

一个新手
一个新手Original
2017-09-08 09:43:191706browse

Briefly organize some common functions for operating files in PHP:

  • filetype() Get the file type function

  • is_dir() Judge the given Whether the file name is a directory

  • is_executable() Determine whether the given file is executable

  • is_file() Determine whether the given file is executable Exists

  • is_link() Determines whether the given file is a symbolic link (soft link)

  • is_readable() Determines whether the given file is readable

  • is_writeable() Determine whether the given file is writable

  • file_exists() Determine whether the file or directory exists

  • filesize() Get the file size (cannot get the directory size)

  • filectime() File creation time

  • filemtime() File modification time

  • fileatime() File access time

  • ##stat() Get most of the file parameters

The above is the detailed content of What are the commonly used php file functions?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn