Forum und email
stat

stat

(PHP 3, PHP 4, PHP 5)

stat -- Zjišťuje informace o souboru

Popis

array stat ( string filename )

Sbírá statistiky o souboru indentifikovaném názvem filename.

Vrací pole se statistikami souboru s těmito elementy:

  1. device

  2. inode

  3. inode protection mode

  4. number of links

  5. user id of owner

  6. group id owner

  7. device type if inode device *

  8. size in bytes

  9. time of last access

  10. time of last modification

  11. time of last change

  12. blocksize for filesystem I/O *

  13. number of blocks allocated

* - platné pouze na systémechs podporou typu st_blksize -- jinde (např. na Windows) vrátí -1

Výsledek této funkce je cachován. Více informací - viz clearstatcache().