this code returns the same size for free and total.
folder "media" has many files in it.
seems like the total returns the free space also since if i upload files to this folder, this script returns a new size (but same size for total and free)
anyone know why?
Code: Select all
?php
$fs ="media";
$df = disk_free_space($fs);
echo "space free is:";
echo $df;
$dt = disk_total_space($fs);
echo "space total is:";
echo $dt;
?>