1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-jquerymobile

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
combine.php 584 Байты
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Gabriel Schulhof Отправлено 05.11.2012 01:58 7e0242b
<?php
// Get the filetype and array of files
if ( ! isset($type) || ! isset($files) )
{
echo '$type and $files must be specified!';
exit;
}
$contents = '';
if ( isset( $comment ) ) {
$contents .= $comment;
}
// 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;

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-jquerymobile.git
git@api.gitlife.ru:oschina-mirror/mirrors-jquerymobile.git
oschina-mirror
mirrors-jquerymobile
mirrors-jquerymobile
main