PHP » PYTHON |
login |
register |
about
|
import os os.path.getsize(filename) filesize(PHP 4, PHP 5) filesize — Gets file size Description
int filesize
( string $filename
)
Gets the size for the given file. Parameters
Return ValuesReturns the size of the file in bytes, or FALSE (and generates an error of level E_WARNING) in case of an error.
Examples
Example #1 filesize() example
<?php
Notes
Tip
As of PHP 5.0.0, this function can also be used with some URL wrappers. Refer to List of Supported Protocols/Wrappers for a listing of which wrappers support stat() family of functionality. |
more
Recently updated
more
Most requested
more
Last requests
|