Determining the Size of a File : File Property « File Directory « PHP
- PHP
- File Directory
- File Property
Determining the Size of a File
<?php
$myfile = "./test.txt";
if (file_exists ($myfile)) {
$checksize=filesize ($myfile);
echo "$checksize";
} else {
echo "The file doesn't exist!";
}
?>
Related examples in the same category