PHP Classes

File: example_cachen.php

Recommend this page to a friend!
  Classes of Nico Schubert   CachClass   example_cachen.php   Download  
File: example_cachen.php
Role: Example script
Content type: text/plain
Description: Beispiel
Class: CachClass
Store and retrieve cached data in files
Author: By
Last change: .
Date: 1 month ago
Size: 288 bytes
 

Contents

Class file image Download
<?php
include(dirname(__FILE__).'/cachen.class.php');
$cache=new cachen(dirname(__FILE__),'testfile', 300);
if(
$cache->cachen_check()){
   
$text='Das ist mein Text';
   
$ausgabe=$cache->cach_load($text);
    echo
$ausgabe;
}else {
   
$ausgabe=$cache->cach_load();
    echo
$ausgabe;
}
?>