mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
22 lines
530 B
PHP
22 lines
530 B
PHP
<?php
|
|
// Get the filetype and array of files
|
|
if ( ! isset($type) || ! isset($files) )
|
|
{
|
|
echo '$type and $files must be specified!';
|
|
exit;
|
|
}
|
|
|
|
$contents = '';
|
|
|
|
// Loop through the files adding them to a string
|
|
foreach ( $files as $file ) {
|
|
$contents .= file_get_contents($file). "\n\n";
|
|
}
|
|
|
|
// Set the content type, filesize and an expiration so its not cached
|
|
header('Content-Type: ' . $type);
|
|
header('Content-Length: ' . strlen($contents));
|
|
header('Expires: Fri, 01 Jan 2010 05:00:00 GMT');
|
|
|
|
// Deliver the file
|
|
echo $contents;
|