Mega Code Archive

 
Categories / Php / File Directory
 

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!";   } ?>