lstat

(PHP 3>= 3.0.4, PHP 4 )

lstat -- Geeft informatie over een bestand of een symbolic link

Beschrijving

array lstat ( string filename)

Verzamelt gegevens over het bestand of symbolic link filename. Deze functie is hetzelfde als stat() behalve dat als filename een symbolic link is, de status van de symbolic link wordt terug gegeven en niet de status van het bestand waar de symbolic link naar verwijst.

Geeft een array met gegevens terug 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 stat().