PHP/file/meta
Jump to navigation
Jump to search
PHP file metadata access
|
PHP File fx() |
Functions
function name | R/W + type | description |
---|---|---|
file_exists() |
read bool | returns bool indicating whether a file or dir exists |
fileatime() |
read time | Gets last access time of file |
filectime() |
read time | Gets inode change time of file |
filegroup() |
read perm | Gets file group |
fileinode() |
read sys | Gets file inode |
filemtime() |
read time | Gets file modification time |
fileowner() |
read perm | Gets file owner |
fileperms() |
read perm | Gets file permissions |
filesize() |
read int | Gets file size |
filetype() |
read | Gets file type |
fstat() |
read | Gets information about a file using an open file pointer |
linkinfo() |
read | Gets information about a link |
lstat() |
read | Gives information about a file or symbolic link |
readlink() |
read | Returns the target of a symbolic link |
stat() |
read | Gives information about a file |
is_dir() |
read is_? | Tells whether the filename is a directory |
is_executable() |
read is_? | Tells whether the filename is executable |
is_file() |
read is_? | Tells whether the filename is a regular file |
is_link() |
read is_? | Tells whether the filename is a symbolic link |
is_readable() |
read is_? | Tells whether a file exists and is readable |
is_uploaded_file() |
read is_? | Tells whether the file was uploaded via HTTP POST |
is_writable() |
read is_? | Tells whether the filename is writable |
is_writeable() |
read is_? | Alias of is_writable |
chgrp() |
write | Changes file group |
chmod() |
write | Changes file mode |
chown() |
write | Changes file owner |
clearstatcache() |
write | Clears file status cache |
disk_free_space() |
write | Returns available space on filesystem or disk partition |
disk_total_space() |
write | Returns the total size of a filesystem or disk partition |
lchgrp() |
write | Changes group ownership of symlink |
lchown() |
write | Changes user ownership of symlink |
rmdir() |
write: delete | delete a folder |
unlink() |
write: delete | delete a file |