PHP lstat() Function
❮ PHP Filesystem ReferenceDefinition and Usage
The lstat() function returns information about a file or symbolic link.
Note: The results from this function will differ from server to server. The array may contain the number index, the name index, or both.
Note: The result of this function is cached. Use clearstatcache() to clear the cache.
Tip: This function is similar to stat(), except that if the filename parameter is a symbolic link, the status of the symbolic link is returned.
Syntax
lstat(filename)
Parameter Values
Parameter | Description |
---|---|
filename | Required. Specifies the path to the file or a symbolic link to check |
Technical Details
Return Value: |
An array with the following elements:
It returns an E_WARNING on failure |
---|---|
PHP Version: | 4.0+ |
❮ PHP Filesystem Reference