PHP/file/meta
Jump to navigation
Jump to search
|
PHP file metadata access
|
|
PHP File fx() |
Functions
Read Meta
file_exists()– returns bool indicating whether a file or dir existsfileatime()– Gets last access time of filefilectime()– Gets inode change time of filefilegroup()– Gets file groupfileinode()– Gets file inodefilemtime()– Gets file modification timefileowner()– Gets file ownerfileperms()– Gets file permissionsfilesize()– Gets file sizefiletype()– Gets file typefstat()– Gets information about a file using an open file pointerlinkinfo()– Gets information about a linklstat()– Gives information about a file or symbolic linkreadlink()– Returns the target of a symbolic linkstat()– Gives information about a file
bool condition-checks
- is_dir() — Tells whether the filename is a directory
- is_executable() — Tells whether the filename is executable
- is_file() — Tells whether the filename is a regular file
- is_link() — Tells whether the filename is a symbolic link
- is_readable() — Tells whether a file exists and is readable
- is_uploaded_file() — Tells whether the file was uploaded via HTTP POST
- is_writable() — Tells whether the filename is writable
- is_writeable() — Alias of is_writable
Write Meta
- chgrp() — Changes file group
- chmod() — Changes file mode
- chown() — Changes file owner
- clearstatcache() — Clears file status cache
- disk_free_space() — Returns available space on filesystem or disk partition
- disk_total_space() — Returns the total size of a filesystem or disk partition
- lchgrp() — Changes group ownership of symlink
- lchown() — Changes user ownership of symlink