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 437 views
1 answer 230 views
230 views asked Aug 20, 2023 by avibootz
1 answer 276 views
1 answer 298 views
4 answers 400 views
400 views asked Jun 29, 2024 by avibootz
...