File: index.php

Recommend this page to a friend!
  Classes of William Lang  >  Website Cache  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Usage
Class: Website Cache
Retrieve site pages and store in cache files
Author: By
Last change: quick changes
Date: 12 years ago
Size: 448 bytes
 

Contents

Download
<?
   
include('websiteCache.php');
   
$c = new websiteCache();
   
   
/**
        This class will allow you to cache your websites, or, someone else's for quick viewing.
        cacheInit($url);
        newCache($fileName); //file name relative to the URL
        printCache($fileName); //file name relative to the URL
       
       
        Enjoy!
    **/
   
   
$c->cacheInit('http://www.yourdomain.com');
   
    if (
$c->newCache('index.html')){
       
$c->printCache('index.html');
    }
?>


For more information send a message to info at phpclasses dot org.