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

Source for file example.php

Documentation is available at example.php

  1. <?php
  2. /**
  3. *   Test application for System_Folders
  4. *
  5. *   @author Christian Weiske <cweiske@php.net>
  6. */
  7. require_once 'System/Folders.php';
  8.  
  9. $sf = new System_Folders();
  10.  
  11. $arData = array(
  12. 'Username'         => $sf->getUserName(),
  13. 'Home'             => $sf->getHome(),
  14. 'Documents'        => $sf->getDocuments(),
  15. 'Shared documents' => $sf->getSharedDocuments(),
  16. 'Temp'             => $sf->getTemp(),
  17. 'Desktop'          => $sf->getDesktop(),
  18. 'AppData'          => $sf->getAppData(),
  19. 'Programs'         => $sf->getPrograms(),
  20. 'Windows'          => $sf->getWindows()
  21. );
  22.  
  23. echo 'System: ' $sf->getSys("\r\n";
  24. var_dump($arData);
  25. ?>

Documentation generated on Fri, 21 Dec 2012 15:30:02 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.