The way PHP obtains system partition information under Linux system, linuxphp
This paper describes how PHP obtains system partition information under Linux system. Share to everyone for your reference. The implementation method is as follows:
$pars = Array_filter (Explode ("\ n", ' Df-h ')), foreach ($pars as $par) { if ($par {0} = = '/') { $_tmp = Array_values (A Rray_filter (Explode (", $par))); Reset ($_tmp); echo "Partition mount point: {$_tmp[' 5 '},". " Total size: {$_tmp[' 1 ']} ". " Used: {$_tmp[' 2 '}} ({$_tmp[' 4 '})
"; }}
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/976022.html www.bkjia.com true http://www.bkjia.com/PHPjc/976022.html techarticle The method that PHP obtains system partition information under Linux system, linuxphp the method that PHP obtains system partition information under Linux system. Share to everyone for your reference. Concrete implementation of the party ...