Home >Backend Development >PHP Tutorial >How to obtain system partition information with php under Linux system_PHP tutorial
This article mainly introduces the method for obtaining system partition information with PHP under Linux system, and involves the operation of PHP system analysis under Linux The skills have certain reference value. Friends who need them can refer to them
The example in this article describes the method of obtaining system partition information in PHP under Linux system. Share it with everyone for your reference. The specific implementation method is as follows:
?
3 4 5
|
$pars = array_filter(explode("n",`df -h`));
foreach ($pars as $par) {
if ($par{0} == '/') { "; } } |