PHP Classes

How to Use a PHP Disk Used Space Script to Display Information of the Disk Drives Using the Package Drives Info: Display the size and free space of disk drives

Recommend this page to a friend!
  Info   Example   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-11-28 (4 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 14 This week: 14All time: 11,414 This week: 6Up
Version License PHP version Categories
drives_info 1.0.0Custom (specified...8.2System information, Content management, P..., G...
Description 

Author

This package can display the size and free space of disk drives.

It provides a script that can determine the details of the disk drives available on the machine on which PHP runs.

The script can display a list of disk drives in a box-style formatted table Web page with information on the size of each drive and the available space in bytes and percentages.

Picture of ASCOOS CMS
  Performance   Level  
Name: ASCOOS CMS <contact>
Classes: 20 packages by
Country: Greece Greece
Innovation award
Innovation award
Nominee: 13x

Example

<?php
/**
 * @package : Disk Drives Informations
 * @source : /drives-info/index.php
 * @version : 1.0.0
 * @created : 2024-11-27 07:00:00 UTC+3
 * @updated :
 * @author : Drogidis Christos
 * @authorSite : www.alexsoft.gr
 * @license : AGL-F
 *
 * @since PHP 8.2.0
 */
declare(strict_types=1);
//require_once "../afw/autoload.php";

// Load Ascoos Framework 24
require_once "[YOUR ROOT SITE PATH]/afw/autoload.php";

// Load Configurations
$config = require str_replace('\\', '/', __DIR__).'/conf/config.php';
?>
<!DOCTYPE html>
<html lang="<?php echo $config['lang']; ?>">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Disk Drives Informations</title>
    <link rel="stylesheet" href="assets/css/reset.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/main.css" type="text/css" />
    <script type="text/javascript" src="assets/js/jquery.js" charset="UTF-8"></script>
</head>
<body>
    <div class="efp-template">
        <?php require_once "drives.php"; ?>
</div>
</body>
</html>


Details

How to use the package.

This package displays a list of the disk drivers you have on your system.

Creates a box-style formatted table that displays both the disk and the total, used, and free space on it.

You can easily integrate it into any code as long as you follow the instructions below in the details and have Ascoos Framework 24 installed.

Unfortunately, the configuration in /conf/config.php must be done manually.

Installation

Download and install Ascoos Framework 24 from Github - PHPClasses - Sourceforge.

In the index.php file, adjust the path to match the path where the Ascoos Framework 24 is located.

// Load Ascoos Framework 24.
require_once "[YOUR ROOT SITE PATH]/afw/autoload.php";

Configure the package

    conf/config.php

  • Change the presets according to your needs.
[
    'lang'              => 'en',        // Current Language of package
    'show_title'        => true,        // Show Title in block element.
    'show_total_size'   => true,		// Show Disk Drive total size
    'theme'             => 'cleargray'  // Theme. 'default' or 'cleargray'
];

Now you can run it either through another cms, or as a standalone one, like the example that came with the package.

---


Screenshots (1)  
  • screenshot.png
  Files folder image Files (45)  
File Role Description
Files folder imageassets (1 file, 2 directories)
Files folder imageconf (2 files)
Files folder imagelangs (25 files)
Files folder imagelibs (1 file)
Files folder imagethemes (1 file, 2 directories)
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file drives.php Aux. Implementation script
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE_AGL-F.md Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (45)  /  assets  
File Role Description
Files folder imagecss (3 files)
Files folder imagejs (2 files)
  Accessible without login HTML file index.html Doc. Documentation

  Files folder image Files (45)  /  assets  /  css  
File Role Description
  Accessible without login HTML file index.html Doc. Documentation
  Accessible without login Plain text file main.css Data Auxiliary data
  Accessible without login Plain text file reset.css Data Auxiliary data

  Files folder image Files (45)  /  assets  /  js  
File Role Description
  Accessible without login HTML file index.html Doc. Documentation
  Accessible without login Plain text file jquery.js Data Auxiliary data

  Files folder image Files (45)  /  conf  
File Role Description
  Accessible without login Plain text file config.php Aux. Configuration script
  Accessible without login HTML file index.html Doc. Documentation

  Files folder image Files (45)  /  langs  
File Role Description
  Accessible without login Plain text file de.error.php Aux. Configuration script
  Accessible without login Plain text file de.php Aux. Configuration script
  Accessible without login Plain text file el.error.php Aux. Configuration script
  Accessible without login Plain text file el.php Aux. Configuration script
  Accessible without login Plain text file en.error.php Aux. Configuration script
  Accessible without login Plain text file en.php Aux. Configuration script
  Accessible without login Plain text file es.error.php Aux. Configuration script
  Accessible without login Plain text file es.php Aux. Configuration script
  Accessible without login Plain text file fr.error.php Aux. Configuration script
  Accessible without login Plain text file fr.php Aux. Configuration script
  Accessible without login HTML file index.html Doc. Documentation
  Accessible without login Plain text file it.error.php Aux. Configuration script
  Accessible without login Plain text file it.php Aux. Configuration script
  Accessible without login Plain text file pt-br.error.php Aux. Configuration script
  Accessible without login Plain text file pt-br.php Aux. Configuration script
  Accessible without login Plain text file pt.error.php Aux. Configuration script
  Accessible without login Plain text file pt.php Aux. Configuration script
  Accessible without login Plain text file ru.error.php Aux. Configuration script
  Accessible without login Plain text file ru.php Aux. Configuration script
  Accessible without login Plain text file tr.error.php Aux. Configuration script
  Accessible without login Plain text file tr.php Aux. Configuration script
  Accessible without login Plain text file zh-cn.error.php Aux. Configuration script
  Accessible without login Plain text file zh-cn.php Aux. Configuration script
  Accessible without login Plain text file zh-tw.error.php Aux. Configuration script
  Accessible without login Plain text file zh-tw.php Aux. Configuration script

  Files folder image Files (45)  /  libs  
File Role Description
  Accessible without login Plain text file functions.php Aux. Functions script

  Files folder image Files (45)  /  themes  
File Role Description
Files folder imagecleargray (2 files)
Files folder imagedefault (2 files)
  Accessible without login HTML file index.html Data Empty page

  Files folder image Files (45)  /  themes  /  cleargray  
File Role Description
  Accessible without login HTML file index.html Doc. Documentation
  Accessible without login Plain text file theme.css Data Auxiliary data

  Files folder image Files (45)  /  themes  /  default  
File Role Description
  Accessible without login HTML file index.html Data Empty page
  Accessible without login Plain text file theme.css Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
Downloaddrives_info-2024-11-28.zip 109KB
Downloaddrives_info-2024-11-28.tar.gz 96KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
PHP Backwards Compatibility Library Download .zip .tar.gz Support new php features Conditional
Ascoos Framework 24 Download .zip .tar.gz Require Ascoos Framework >= 24.0.1 Required
 Version Control Unique User Downloads Download Rankings  
 100%
Total:14
This week:14
All time:11,414
This week:6Up