Manuel Pear

System_WinDrives::getDriveName()

System_WinDrives::getDriveName() -- Returns the user-defined name for a drive

Synopsis

  1. <?php
  2. require_once 'System/WinDrives.php
  3. ?> 

string System_WinDrives::getDriveName (string $strDrive)

Description

Returns the user-given name for the given drive. The function does not work on PHP5 and returns an empty string ''.

Paramètres

chaîne de caractères $strDrive

The drive path, whose name shall be read.

Valeur retournée

chaîne de caractères - The drive label

Exemple

Exemple 63-1. Using myFunction()

  1. <?php
  2. require_once 'System/WinDrives.php';  
  3.  
  4. $swd = new System_WinDrives();  
  5. echo $swd->getDriveName('C:\\');  
  6.  
  7. ?> 

Output:

Windrive

Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Bretagne - php - Moto - Kit graphique