Determining the Size of a File : File Property : File Directory PHP Source Code


PHP Source Code » 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!";
  }
?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo File Directory
» File Property