phpDocumentor file
[ class tree: file ] [ index: file ] [ all elements ]

Source for file index.php

Documentation is available at index.php

  1. <?
  2. /**
  3. * The index.php.
  4. * The main entry for a browser request
  5. *
  6. * @package file
  7. * @filesource
  8. * @see index.php
  9. * @copyright (c) http://Finn-Rasmussen.com
  10. * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
  11. * @author http://Finn-Rasmussen.com
  12. * @version 1.9
  13. * @since 21-oct-2005
  14. */
  15.  
  16. /**
  17. * The required files
  18. */
  19. require_once($_SERVER['DOCUMENT_ROOT'].'/initialize.php');
  20.  
  21. /**
  22. * Test of File
  23. */
  24. print "<h4>Test of File</h4>";
  25. require_once(HTML_FILE_UTIL_PATH.'/File.php');
  26. $file = new File('myphp-package.php');
  27. print '<pre>'.htmlentities($file->getContent())."</pre>\r\n";
  28.  
  29. /**
  30. * Test of Dir
  31. */
  32. print "<h4>Test of Dir</h4>";
  33. require_once(HTML_FILE_UTIL_PATH.'/Dir.php');
  34. $dir = new Dir('..');
  35. print "cwd = ".$dir->getcwd()."<br />\r\nList dirs ...<br />\r\n";
  36. $dirs = '';
  37. $dir->open();
  38. while($dirs = $dir->read()) {
  39. print "$dirs<br />\r\n";
  40. }
  41. $dir->close();
  42. ?>

Documentation generated on Thu, 22 Dec 2005 17:10:45 +0100 by phpDocumentor 1.3.0RC3