File Stat Functions Demo
- Functions demonstrated
- <?fileperms($filename)>
<?fileinode($filename)>
<?filesize($filename)>
<?fileowner($filename)>
<?filegroup($filename)>
<?fileatime($filename)>
<?filemtime($filename)>
<?filectime($filename)>
These functions return information about the given file. This information
is the same as that returned by the C stat() function. See the man page
for the stat function for a complete description of the nature of the
returned data.
fileperms returns the permission bits of the file. This is the
st_mode of the stat structure.
fileinode returns the file's inode.
filesize returns the size of the file in bytes.
fileowner returns the uid of the owner.
filegroup returns the gid of the owner.
fileatime returns the time of last data access.
filemtime returns the time of last data modification.
filectime returns the time of last status change.