filesize() function returns the size, in bytes. : filesize « File Directory « PHP






filesize() function returns the size, in bytes.

 
Its syntax is: int filesize (string filename)

<?
    $fs = filesize("data.txt");
    print "Pastry.txt is $fs bytes.";
?>
  
  








Related examples in the same category

1.Determining File Size with filesize()
2.filesize.php