|
stat
Purpose:
Get information about a file or directory.
The parameter file is a path name
and must be of type string.
Return Values:
Returns null if the information is not available.
Otherwise, an object with the following fields is returned:
| name | type | description |
| dev | integer | device |
| ino | integer | inode |
| mode | integer | type and protection |
| nlink | integer | number of hard links |
| uid | integer | user ID of owner |
| gid | integer | group ID of owner |
| rdev | integer | device type (if device) |
| size | integer | total size, in bytes |
| blksize | integer | block size for file system I/O (not available on Windows) |
| blocks | integer | number of blocks allocated (not available on Windows) |
| atime | integer | time of last access |
| mtime | integer | time of last modification |
| ctime | integer | time of last change |
Configuration:
The function is not allowed in secure mode.
Example:
heitml input:
// The example shows how to use the stat function
// with the file of this page.
<? stat(SrvFileName);
|
See Also:
copyfile(), directory(), mkdir(), movefile(), readFileLines(),
writefile.
This page was dynamically generated by
heitml
© 1996-2009 H.E.I. All Rights Reserved
|