I'm using multiple CSS file in a project and also using a Php file as "stylesheet" to load all the CSS into a single file with compress them all. For that I'm using the following code:
$cssFiles = array("reset.css", "main.css", "plugin.css");
$css = "";
foreach($cssFiles as $cssFile){
$css .= file_get_contents($cssFile);
}
header("Content-type: text/css");
echo($css);
Now I need to know what is the advantages or disadvantages of this process?
I'm doing the same thing for javascript files too.
Thanks.