Login   Register  
PHP Classes
elePHPant
Icontem

File: example/example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2009-12-09 15:47
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);
}
?>