PHP » GoLang |
login |
register |
about
|
stat(PHP 4, PHP 5, PHP 7) stat — Gives information about a file Description
array stat
( string
$filename
)
Gathers the statistics of the file named by
lstat() is identical to stat() except it would instead be based off the symlinks status. Parameters
Return Values
** Only valid on systems supporting the st_blksize type - other systems (e.g. Windows) return -1.
In case of error, stat() returns
Errors/Exceptions
Upon failure, an Examples
Example #1 stat() example
<?php
Example #2 Using stat() information together with touch()
<?php Notes
Tip
As of PHP 5.0.0, this function can also be used with some URL wrappers. Refer to Supported Protocols and Wrappers to determine which wrappers support stat() family of functionality. See Also
|
more
Recently updated
more
Most requested
more
Last requests
|