Login   Register  
PHP Classes
elePHPant
Icontem

File: CacheExample

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tufan Baris YILDIRIM  >  D3Css  >  CacheExample  >  Download  
File: CacheExample
Role: Example script
Content type: text/plain
Description: css inharitance with output caching
Class: D3Css
Evaluate CSS styles with inheritance support
Author: By
Last change:
Date: 4 years ago
Size: 340 bytes
 

Contents

Class file image Download
<?php
// rename this file to Example.php for can try it with  given .httaccess
    
include 'D3Css.php';

    
header("Content-Type: text/plain");
    
$css = new D3Css(preg_replace('/[^A-Z0-9_\-\.]/i','',$_GET['file']) . '.css',true,'.');
    
$css->compressed=false;  // this will also be disabled for cached output.
    
echo $css;
?>