stat

(PHP 3, PHP 4 )

stat -- Geeft informatie over een bestand

Beschrijving

array stat ( string filename)

Verzameld informatie van het bestand filename. Als filename een symbolic link is, dan komt de informatie van het bestand zelf, niet van de symlink. lstat() is gelijk aan stat() behalve dat het de informatie van de symlink zal pakken.

Geeft een array terug met informatie over het bestand, met de volgende elementen:

  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

* - alleen geldig op systemen die st_blksize type ondersteunen-- andere systemen (bijvoorbeeld Windows) geven -1 terug

Opmerking: The results of this function are cached. See clearstatcache() for more details.

Opmerking: This function will not work on remote files as the file to be examined must be accessible via the servers filesystem.

Zie ook lstat(), filemtime() en filegroup().