How to get the total space in bytes of a specified directory in PHP

2 Answers

0 votes
echo disk_total_space("c:");
    
/*
run:

127456505856

*/

 



answered Dec 9, 2015 by avibootz
0 votes
echo number_format(disk_total_space("c:"));
    
/*
run:

127,456,505,856

*/

 



answered Dec 9, 2015 by avibootz

Related questions

...