PHP Classes

File: example/example.php

Recommend this page to a friend!
  Classes of Charles   sys   example/example.php   Download  
File: example/example.php
Role: Example script
Content type: text/plain
Description: example of using class
Class: sys
Get information about disk volumes
Author: By
Last change:
Date: 15 years ago
Size: 292 bytes
 

Contents

Class file image Download
<?php
include("../class/sys.php");
//A better print_r displaying (useless, just for fun)
header("Content-Type: text/plain");

//Utilisation :
$os = new sys();
$systemDisk = $os->getDiskSpace();
if(
$systemDisk != false){
   
print_r($systemDisk);
}else{
   
print_r($os->getError);
}
?>