• PHP Video Tutorials

PHP - Direct I/O stat() Function



dio_stat() function can return statistics about a file descriptor fd.

Syntax

array dio_stat(resource fd)

dio_stat() function can return information about a file with the fd descriptor. This function can return an associative array with the following keys.

  • "device" − device
  • "inode" − inode
  • "mode" − mode
  • "nlink" − number of hard links
  • "uid" − user id
  • "gid" − group id
  • "device_type" − device type (if it is an inode-device)
  • "size" − total size in bytes
  • "blocksize" − block size
  • "blocks" − the number of occupied blocks
  • "atime" − time of last access to
  • "mtime" − time of the last modification
  • "ctime" − time of the last change

On error, the dio_stat() function can return NULL.

php_function_reference.htm
Advertisements