Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 16479 программистов и 1771 робот. Сейчас ищут 903 программиста ...
System_WinDrives::getDrivesInformation()
Вернуться к: System_WinDrives
System_WinDrives::getDrivesInformation()
System_WinDrives::getDrivesInformation() – Gets information about all drives
Synopsis
require_once 'System/WinDrives.php';
array System_WinDrives::getDrivesInformation ( void )
Returns an array with all pieces of information one can get for the drives.
Return value
array - Array of little objects. Key is the drive path, the value is an object with the following values: type, name and typetitle.
Example
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
Вернуться к: System_WinDrives