combine.php?files=file,file1,file2
<?php
$files = explode(',', $_GET['files']);
$data = foreach($files as $file) {
if ( ( $ext = end( explode('.', $file) ) == 'js' || $ext == 'css' ) {
$data .= file_get_contents($file);
} }
ob_start('ob_gzhandler');
echo($data);
?>
|