Commit 62ca5c48 authored by SteffTek's avatar SteffTek

Backend

parent d0e40d0e
<?php
$path = '/';
$free = floor( disk_free_space( $path ) / ( 1024 * 1024 * 1024) );
$total = floor( disk_total_space( $path ) / (1024 * 1024 * 1024) );
echo $free . '/' . $total
function get_disk_usage() {
$path = '/';
$free = floor( disk_free_space( $path ) / ( 1024 * 1024 * 1024) );
$total = floor( disk_total_space( $path ) / (1024 * 1024 * 1024) );
return $free . '/' . $total;
}
echo get_disk_usage();
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment