- <?
- /**
- * The index.php.
- * The main entry for a browser request
- *
- * @package cache
- * @filesource
- * @see index.php
- * @copyright (c) http://Finn-Rasmussen.com
- * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
- * @author http://Finn-Rasmussen.com
- * @version 1.9
- * @since 21-oct-2005
- */
-
- /**
- * The required files
- */
- require_once($_SERVER['DOCUMENT_ROOT'].'/initialize.php');
-
- require_once(HTML_CACHE_UTIL_PATH.'/Cache.php');
- $html = "<h1>Start cache</h1>\r\n";
- Cache::start();
- print "<h2>This is Inside cache</h2>\r\n";
- print "<p>All is cached from now</p>\r\n";
- $html .= Cache::contents();
- Cache::end();
- print "<h1>End Outside the cache</h1><hr />\r\n";
- print $html; // Print the cached content
- ?>