Hi Reader's,
Welcome to FindNerd, today we are going to discuss how to use filesize() function in php ?
The filesize() function basically is used for returning the size of the specified file.
filesize() function returns the file size in bytes when function on success or FALSE on failure.
syntax of filesize() function
filesize(filename)
filename is a required parameter
you can take reference of below example
<?php
//call here filesize() and print size of file
echo filesize("file.txt");
?>
The output of the code above will be:
27
0 Comment(s)