How to get the file size in PHP?
php get size of file
$fileSizeInBytes=filesize("/path/to/myfile.txt");
get file size in php
$img = get_headers("file URL", 1);
echo $img["Content-Length"];
$fileSizeInBytes=filesize("/path/to/myfile.txt");
$img = get_headers("file URL", 1);
echo $img["Content-Length"];
In this page (written and validated by A. Gawali) you learned about . What's Next? If you are interested in completing PHP tutorial, we encourage you simply to start here: PHP Tutorial.
Share On: |