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.
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
| Numeric | Associative (since PHP 4.0.6) | Description |
|---|---|---|
| 0 | dev | device number |
| 1 | ino | inode number |
| 2 | mode | inode protection mode |
| 3 | nlink | number of links |
| 4 | uid | userid of owner |
| 5 | gid | groupid of owner |
| 6 | rdev | device type, if inode device * |
| 7 | size | size in bytes |
| 8 | atime | time of last access (Unix timestamp) |
| 9 | mtime | time of last modification (Unix timestamp) |
| 10 | ctime | time of last inode change (Unix timestamp) |
| 11 | blksize | blocksize of filesystem IO * |
| 12 | blocks | number of blocks allocated |
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().
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.