PHP Manual
Prev |  | Next

# filesize

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

filesize -- Gets file size

## Description

``int filesize` (string filename)`

Returns the size of the file in bytes, or `FALSE` in case of an error.

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

This function will not work on remote files; the file to be examined must be accessible via the server's filesystem.

Prev | Home | Next
fileperms | Up | filetype