File: codeigniter/application/hooks/compress.php

Recommend this page to a friend!
  Classes of Aby Dahana  >  Dwitri PHP Social Network Platform  >  codeigniter/application/hooks/compress.php  >  Download  
File: codeigniter/application/hooks/compress.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Dwitri PHP Social Network Platform
Create a community site like a social network
Author: By
Last change:
Date: 6 months ago
Size: 700 bytes


Class file image Download
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$CI =& get_instance();
$buffer = $CI->output->get_output();

$search = array(
'/\n/', // replace end of line by a space
'/\>[^\S ]+/s', // strip whitespaces after tags, except space
'/[^\S ]+\</s', // strip whitespaces before tags, except space
'/(\s)+/s' // shorten multiple whitespace sequences

$replace = array(

$buffer = preg_replace($search, $replace, $buffer);


/* End of file compress.php */
/* Location: ./system/application/hooks/compress.php */

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