Contact | Privacy | Datenschutzerklärung | Impressum


Format: stat (file)

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:

devinteger device
inointeger inode
modeinteger type and protection
nlinkinteger number of hard links
uidinteger user ID of owner
gidinteger group ID of owner
rdevinteger device type (if device)
sizeinteger total size, in bytes
blksizeinteger block size for file system I/O (not available on Windows)
blocksinteger number of blocks allocated (not available on Windows)
atimeinteger time of last access
mtimeinteger time of last modification
ctimeinteger time of last change

Configuration: The function is not allowed in secure mode.


// 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-2024 H.E.I. All Rights Reserved.

Component Guide
  Language Guide
  Language Ref.
    General Design
    Lexical Structure
    heitml Tags
    heitml Functions
    Advanced Functions
    Database Access
    Global Variables
    Form Fields
    Server Variables
    heitml Syntax
  Component Ref.
  Class Library
  User Components
  New Features
  heitml 1
User Guide
Contact / Impressum