System_WinDrives::getDrivesInformation() -- Gets information about all drives
ïÐÉÓÁÎÉÅ
Returns an array with all pieces of information one can get for
the drives.
÷ÏÚ×ÒÁÝÁÅÍÏÅ ÚÎÁÞÅÎÉÅ
array - Array of little objects. Key is the drive path, the value
is an object with the following values: type,
name and typetitle.
ðÒÉÍÅÒ
Пример 58-1. Using myFunction() <?php
require_once 'System/WinDrives.php';
$swd = new System_WinDrives();
$arInfo = $swd->getDrivesInformation();
foreach ($arInfo as $strPath => $objInfo) {
echo 'Drive ' . $strPath . "\r\n";
echo ' type: ' . $objInfo->type . '(' . $objInfo->typetitle . ")\r\n";
echo ' name: ' . $objInfo->name . "\r\n";
}
?> |
Output:
Drive A:\
2 (Removable)
diskette
Drive C:\
3 Harddisk
Windisk |
|
HIVE: All information for read only. Please respect copyright! |
|