Complete PHP Filesystem Reference
The stat() function returns information about a file.
This function returns an array with the following elements:
| Parameter | Description |
|---|---|
| file | Required. Specifies the file to check |
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 are cached. Use clearstatcache() to clear the cache.
Tip: This function is similar to fstat(), except that with this function the file does not have to be open.
The output of the code above could be:
Complete PHP Filesystem Reference
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $7.95/mo SEO Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| XML Editor - Free Trial! |
| FREE Website BUILDER |
| Free Website Templates Free CSS Templates |
| Make Your Own Website |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|