Home Tutorial Php Phpfiles PHP filesize() function and example

 
 

Share on Google+Share on Google+
PHP filesize() function and example
Posted on: October 29, 2009 at 12:00 AM
Advertisement
In this part of PHP tutorial we will learn about the filesize() function and its examples

Syntax

  • int filesize(file_name)
  • It gives the size in bytes. 


Example of filesize() Function in PHP

<?php

    $size=filesize("c:/rose1/ram.txt");
    echo
"size is ".$size." bytes";

?>

Output
size is 20 bytes

Advertisement

Related Tags for PHP filesize() function and example:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: October 29, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com