| 
<?php/**
 * Example of basic usage of class AutoExpires.
 * To use the class, you should:
 * - include source of class;
 * - configure expires options
 * - start class
 * - print the document
 * @author Rubens Takiguti Ribeiro <[email protected]>
 */
 require_once('AutoExpires.class.php');
 
 // Configure expires to 10 seconds
 AutoExpires::setCacheTime(10);
 
 // Start the class
 AutoExpires::start();
 
 // Print the document
 echo 'Hello World!';
 exit(0);
 |