jquery-mobile/combine.php
Kin Blas d5a2ed2f10 Fixed 413 - Dev issue: our .htaccess file on the server is doing a 301 redirect which is causing css and image loading issues.
- Switch to using a combine.php library and index.php scripts within each directory for combining files. This works around the iOS webkit bug that prevents images from being displayed the next time the page is loaded.
2010-11-09 13:58:28 -08:00

18 lines
No EOL
342 B
PHP

<?php
if (!isset($type) || !isset($elements))
{
echo "\$type and \$elements must be specified!";
exit;
}
$contents = '';
reset($elements);
while (list(,$element) = each($elements)) {
$contents .= "\n\n" . file_get_contents($element);
}
header("Content-Type: " . $type);
header("Content-Length: " . strlen($contents));
echo $contents;
?>