| |
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:
// The example shows how to use the stat function
// with the file of this page.
<? stat(SrvFileName)> |
See Also:
copyfile(), directory(), mkdir(), movefile(), readFileLines(), utime(),
writefile.
This page was dynamically generated by the
web application development tool RADpage
of H.E.I.
H.E.I. provides support, tools, and services like
Webdesign in Mannheimm,
the HTML/CSS 3D WebGL Animation Library taccgl,
3D Webdesign, and
3D Product ConfiguratorDemo
(3D Produkt Konfigurator Demo in German).
© 1996-2025 H.E.I. All Rights Reserved.
|