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

2 answers 435 views
1 answer 230 views
230 views asked Aug 20, 2023 by avibootz
1 answer 275 views
1 answer 297 views
4 answers 394 views
394 views asked Jun 29, 2024 by avibootz
...