phpDocumentor cache
[ class tree: cache ] [ index: cache ] [ 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 cache
  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. require_once(HTML_CACHE_UTIL_PATH.'/Cache.php');
  22. $html = "<h1>Start cache</h1>\r\n";
  23. Cache::start();
  24. print "<h2>This is Inside cache</h2>\r\n";
  25. print "<p>All is cached from now</p>\r\n";
  26. $html .= Cache::contents();
  27. Cache::end();
  28. print "<h1>End Outside the cache</h1><hr />\r\n";
  29. print $html; // Print the cached content
  30. ?>

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