System_WinDrives
[ class tree: System_WinDrives ] [ index: System_WinDrives ] [ all elements ]

Source for file example.php

Documentation is available at example.php

  1. <?php
  2. /**
  3. *   Example script for the "System_WinDrives" package
  4. *   @author Christian Weiske <cweiske@cweiske.de>
  5. */
  6.  
  7. require_once('System/WinDrives.php');
  8.  
  9. //if you want to read the names, pass "true" as first parameter
  10. //this may crash your php.exe, so it's disabled by default
  11. $wd = new System_WinDrives(false);
  12.  
  13. //var_dump($wd->guessDriveList());
  14.  
  15. echo 'API available: ';
  16. echo $wd->isApiAvailable('yes' 'no';
  17. echo "\r\n";
  18.  
  19. echo 'Read drive names: ';
  20. echo $wd->getReadName('yes' 'no';
  21. echo "\r\n";
  22.  
  23. $arInfo $wd->getDrivesInformation();
  24. foreach ($arInfo as $strDrive => $objInfo{
  25.     echo $strDrive "\r\n";
  26.     echo '   Type: ' $objInfo->type . "\r\n";
  27.     echo '   Type title: ' .  $objInfo->typetitle . "\r\n";
  28.     echo '   Name: ' $objInfo->name . "\r\n";
  29. }
  30.  
  31. ?>

Documentation generated on Mon, 11 Mar 2019 14:48:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.