3 Prototype : int filesize ( string $filename );
4 Description : Returns the size of the file in bytes, or FALSE
5 (and generates an error of level E_WARNING) in case of an error.
8 $file_path = dirname(__FILE__
);
9 require($file_path."/file.inc");
11 echo "*** Testing filesize(): usage variations ***\n";
13 echo "*** Checking filesize() with different size of files ***\n";
14 for($size = 1; $size <10000; $size = $size+
1000)
16 create_files($file_path, 1, "numeric", 0755, $size, "w", "filesize_variation");
17 var_dump( filesize( $file_path."/filesize_variation1.tmp") );
19 delete_files($file_path, 1, "filesize_variation");
22 echo "*** Done ***\n";