Get the size of the specified file in PHP

Description

The following code shows how to get the size of the specified file.

Example



<?php
    echo filesize("a.php");
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    File »




Directory
DirectoryIterator
Drive
File
File Permission
File Read Save
FileSystemIterator
Path
Zip