Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2008-07-31 00:33
Size: 448 bytes
 

Contents

Class file image 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');
    }
?>