Search for in the Packages This site (using Yahoo!) Developers Developer mailing list General mailing list CVS commits mailing list
require_once 'System/WinDrives.php';
string System_WinDrives::getDriveName (string $strDrive)
string System_WinDrives::getDriveName
そのドライブに対してユーザが設定した名前を返します。 この関数は PHP5 では動作せず、空の文字列 '' を返します。
名前を取得したいドライブのパス。
string - ドライブのラベルを返します。
例 63-1myFunction() の使用法
<?php require_once 'System/WinDrives.php'; $swd = new System_WinDrives(); echo $swd->getDriveName('C:\\'); ?>
出力:
Windrive