PHP: stat - Manual in Deutsh
PHP: stat - Manual in French
PHP: stat - Manual in Polish

You Are At PHP: stat - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

stat

(PHP 3, PHP 4, PHP 5)

stat -- Gives information about a file

Description

array stat ( string filename )

Gathers the statistics of the file named by filename. If filename is a symbolic link, statistics are from the file itself, not the symlink. lstat() is identical to stat() except it would instead be based off the symlinks status.

In case of error, stat() returns FALSE. It also will throw a warning.

Returns an array with the statistics of the file with the following elements. This array is zero-based. In addition to returning these attributes in a numeric array, they can be accessed with associative indices, as noted next to each parameter; this is available since PHP 4.0.6:

Table 1. stat() and fstat() result format

NumericAssociative (since PHP 4.0.6)Description
0devdevice number
1inoinode number
2modeinode protection mode
3nlinknumber of links
4uiduserid of owner
5gidgroupid of owner
6rdevdevice type, if inode device *
7sizesize in bytes
8atimetime of last access (Unix timestamp)
9mtimetime of last modification (Unix timestamp)
10ctimetime of last inode change (Unix timestamp)
11blksizeblocksize of filesystem IO *
12blocksnumber of blocks allocated
* Only valid on systems supporting the st_blksize type - other systems (e.g. Windows) return -1.

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

Tip: As of PHP 5.0.0 this function can also be used with some URL wrappers. Refer to Appendix N for a listing of which wrappers support stat() family of functionality.

See also lstat(), fstat(), filemtime(), and filegroup().

Jak ograniczyć jedzenie słodyczy Jak ograniczyć jedzenie słodyczy
6
www.finansowo.podejrzliwy.kalisz.pl
Prezenty
tanie holowanie Rzeszów

Another Useful functions:


zend-macro.vcwd-stat | zend-macro.vcwd-lstat | zend-api.zend-update-static-property | zend-api.zend-update-static-property-unicodel | zend-api.zend-update-static-property-unicode | zend-api.zend-update-static-property-stringl | zend-api.zend-update-static-property-string | zend-api.zend-update-static-property-rt-stringl | zend-api.zend-update-static-property-rt-string | zend-api.zend-update-static-property-null | zend-api.zend-update-static-property-long | zend-api.zend-update-static-property-double | zend-api.zend-update-static-property-bool | zend-api.zend-update-static-property-ascii-stringl | zend-api.zend-update-static-property-ascii-string | zend-api.zend-std-unset-static-property | zend-api.zend-std-get-static-property | zend-api.zend-read-static-property | zend-api.virtual-stat | zend-api.virtual-lstat | streams.struct-php-stream-statbuf | streams.php-stream-stat | streams.php-stream-stat-path | ref.stats | language.oop5.static | install.pecl.static | function.ziparchive-statname | function.ziparchive-statindex | function.xmlreader-movetofirstattribute | function.win32-set-service-status | function.win32-query-service-status | function.win32-ps-stat-proc | function.win32-ps-stat-mem | function.tidy-get-status | function.stats-variance | function.stats-stat-powersum | function.stats-stat-percentile | function.stats-stat-paired-t | function.stats-stat-noncentral-t | function.stats-stat-innerproduct | function.stats-stat-independent-t | function.stats-stat-gennch | function.stats-stat-correlation | function.stats-stat-binomial-coef | function.stats-standard-deviation | function.stats-skew | function.stats-rand-setall | function.stats-rand-ranf | function.stats-rand-phrase-to-seeds | function.stats-rand-get-seeds | function.stats-rand-gen-t | function.stats-rand-gen-normal | function.stats-rand-gen-noncentral-t | function.stats-rand-gen-noncentral-f | function.stats-rand-gen-noncenral-chisquare | function.stats-rand-gen-iuniform | function.stats-rand-gen-ipoisson | function.stats-rand-gen-int | function.stats-rand-gen-ibinomial | function.stats-rand-gen-ibinomial-negative | function.stats-rand-gen-gamma | function.stats-rand-gen-funiform | function.stats-rand-gen-f | function.stats-rand-gen-exponential | function.stats-rand-gen-chisquare | function.stats-rand-gen-beta | function.stats-kurtosis | function.stats-harmonic-mean | function.stats-dens-weibull | function.stats-dens-t | function.stats-dens-pmf-poisson | function.stats-dens-pmf-hypergeometric | function.stats-dens-pmf-binomial | function.stats-dens-normal | function.stats-dens-negative-binomial | function.stats-dens-logistic | function.stats-dens-laplace | function.stats-dens-gamma | function.stats-dens-f | function.stats-dens-exponential | function.stats-dens-chisquare | function.stats-dens-cauchy | function.stats-dens-beta | function.stats-den-uniform | function.stats-covariance | function.stats-cdf-weibull | function.stats-cdf-uniform | function.stats-cdf-t | function.stats-cdf-poisson | function.stats-cdf-noncentral-f | function.stats-cdf-noncentral-chisquare | function.stats-cdf-negative-binomial | function.stats-cdf-logistic | function.stats-cdf-laplace | function.stats-cdf-gamma | function.stats-cdf-f | function.stats-cdf-exponential | function.stats-cdf-chisquare | function.stats-cdf-cauchy | function.stats-cdf-binomial | function.stats-cdf-beta | function.stats-absolute-deviation | function.stat | function.ssh2-sftp-stat | function.ssh2-sftp-lstat | function.socket-get-status | function.session-pgsql-status | function.proc-get-status | function.pg-transaction-status | function.pg-result-status | function.pg-parameter-status | function.pg-connection-status | function.pdostatement-setfetchmode | function.pdostatement-setattribute | function.pdostatement-rowcount | function.pdostatement-nextrowset | function.pdostatement-getcolumnmeta | function.pdostatement-getattribute | function.pdostatement-fetchobject | function.pdostatement-fetchcolumn | function.pdostatement-fetchall | function.pdostatement-fetch | function.pdostatement-execute | function.pdostatement-errorinfo | function.pdostatement-errorcode | function.pdostatement-columncount | function.pdostatement-closecursor | function.pdostatement-bindvalue | function.pdostatement-bindparam | function.pdostatement-bindcolumn | function.pdf-set-gstate | function.pdf-create-gstate | function.pcntl-wexitstatus | function.odbc-statistics | function.ocistatementtype | function.ocifreestatement | function.ocifetchstatement | function.oci-statement-type | function.oci-free-statement | function.ob-get-status | function.mysqli-stmt-sqlstate | function.mysqli-stat | function.mysqli-sqlstate | function.mysql-stat | function.mssql-free-statement | function.msg-stat-queue | function.memcache-getstats | function.memcache-getserverstatus | function.memcache-getextendedstats | function.maxdb-stmt-sqlstate | function.maxdb-stat | function.maxdb-sqlstate | function.m-returnstatus | function.m-checkstatus | function.lstat | function.ingres-errsqlstate | function.imap-status | function.iis-get-service-state | function.hwapi-hwstat | function.hwapi-ftstat | function.hwapi-dcstat | function.hwapi-dbstat | function.hw-stat | function.httprequest-getresponsestatus | function.httpmessage-setresponsestatus | function.httpmessage-getresponsestatus | function.http-send-status | function.fstat | function.fdf-set-status | function.fdf-get-status | function.fbsql-db-status | function.dio-stat | function.db2-statistics | function.connection-status | function.clearstatcache | function.ccvs-status | extensions.state |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.