Source for file example.php
Documentation is available at example.php
* Example script for the "System_WinDrives" package
* @author Christian Weiske <cweiske@cweiske.de>
require_once('System/WinDrives.php');
//if you want to read the names, pass "true" as first parameter
//this may crash your php.exe, so it's disabled by default
//var_dump($wd->guessDriveList());
echo $wd->isApiAvailable () ? 'yes' : 'no';
echo 'Read drive names: ';
echo $wd->getReadName () ? 'yes' : 'no';
$arInfo = $wd->getDrivesInformation ();
foreach ($arInfo as $strDrive => $objInfo) {
echo ' Type: ' . $objInfo->type . "\r\n";
echo ' Type title: ' . $objInfo->typetitle . "\r\n";
echo ' Name: ' . $objInfo->name . "\r\n";
Documentation generated on Mon, 11 Mar 2019 14:48:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|