Hello,
Here is an example. Is it possible to save the output buffer. I would like to cache what its going to output.
header('Content-type: text/css');
ob_start("compress");
function compress($buffer) {
$buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
$buffer = str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $buffer);
return $buffer;
}
include('layout.css');
include('pages.css');
include('form.css');
include('global.css');
ob_end_flush();