previousSystem_WinDrives() (Previous) (Next) System_WinDrives::getDriveName()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

System_WinDrives::getDriveList()

System_WinDrives::getDriveList() – Gets array with path of all drives

Synopsis

require_once 'System/WinDrives.php';

array System_WinDrives::getDriveList ( void )

Description

Returns an array with all drive paths (e.g. A:\, C:\).

If no API is available, the drive list is guessed. To get more data (like drive type and name), you should use getDrivesInformation().

Return value

array - array with all the drives

Example

Using myFunction()

<?php
require_once 'System/WinDrives.php';

$swd = new System_WinDrives();
$arPaths $swd->getDriveList();
foreach (
$arPaths as $strPath) {
    echo 
$strPath "\r\n";//echoes things like "A:\" and "C:\"
}
?>

Output:

    
A:\
C:\
    
previousSystem_WinDrives() (Previous) (Next) System_WinDrives::getDriveName()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.