PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Michele Andreoli   CSS Unifier   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example of use
Class: CSS Unifier
Unify several CSS stylesheets into a single file
Author: By
Last change:
Date: 12 years ago
Size: 1,217 bytes
 

Contents

Class file image Download
<?php
/**
 * @author Michele Andreoli <michi.andreoli@gmail.com>
 * @name index.php
 * @version 0.1 updated 10-08-2011
 * @license http://opensource.org/licenses/gpl-license-php GNU Public License
 * @package CSSUnifier
 */
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <?php
           
require_once 'CSSUnifier.class.php';
           
/**
             * USAGE:
             * If you specify a path like "./css/log.txt" you enable the debug mode and
             * in the logger file you will see all operations made by CSSUnifier
             * otherwise the debug mode is disabled.
             * Remember that the directory that contains log file will must have the writing permissions (757)
             **/
           
$unifier = new Unifier("CSSList.xml", "./css/log.txt");
           
$unifier->getCSS();
       
?>
<title>Compressor And Unifier CSS</title>
    </head>
    <body>
        <h1>Title</h1>
        <p>paragraph</p>
    </body>
</html>