i was looking at your function code.
and i found
Code: Select all
function getDiskPercent()
{
$df = shell_exec( 'df '.ZM_DIR_EVENTS );
$space = -1;
if ( preg_match( '/\s(\d+)%/ms', $df, $matches ) )
$space = $matches[1];
return( $space );
}
function getDiskBlocks()
{
$df = shell_exec( 'df '.ZM_DIR_EVENTS );
$space = -1;
if ( preg_match( '/\s(\d+)\s+\d+\s+\d+%/ms', $df, $matches ) )
$space = $matches[1];
return( $space );
}
i cant figureit out what '/\s(\d+)\s+\d+\s+\d+%/ms' mean .. and how this can tell you the disk blocks using the "df" funcion.
can you tell me a good resouce to read..