ob_end_clean();
перед установкой заголовков.require_once __DIR__ . '/../phpexcel/Classes/PHPExcel.php';
require_once(__DIR__ . '/../phpexcel/Classes/PHPExcel/Writer/Excel5.php');
$xls = new \PHPExcel();
$xls->setActiveSheetIndex(0);
$sheet = $xls->getActiveSheet();
$sheet->setCellValue("A1", 'Тест1');
$sheet->setCellValue("B1", 'Тест2');
$sheet->setCellValue("C1", 'Тест3');
$sheet->setCellValue("D1", 'Тест4');
$sheet->setCellValue("E1", 'Тест5');
$sheet->setCellValue("F1", 'Тест6');
$sheet->setCellValue("G1", 'Тест7');
$sheet->setCellValue("H1", 'Тест8');
ob_end_clean();
header ( "Expires: Mon, 1 Apr 1974 05:00:00 GMT" );
header ( "Last-Modified: " . gmdate("D,d M YH:i:s") . " GMT" );
header ( "Cache-Control: no-cache, must-revalidate" );
header ( "Pragma: no-cache" );
header ( "Content-type: application/vnd.ms-excel" );
header ( "Content-Disposition: attachment; filename=test.xls" );
$objWriter = new \PHPExcel_Writer_Excel5($xls);
$objWriter->save('php://output');
# Install composer plugins
RUN composer global require --optimize-autoloader \
"hirak/prestissimo:${VERSION_PRESTISSIMO_PLUGIN}" && \
composer global dumpautoload --optimize && \
composer clear-cache
<h3 data-v-34777841></h3>
без содержимого!vue add prerender-spaвместо npm модуля по этой инструкции https://www.npmjs.com/package/vue-cli-plugin-prere...
location / {
try_files $uri $uri/ /index.php?q=$uri$args;
}
location / {
try_files $uri /index.php?$query_string;
}
traefik:
image: traefik:v2.0
container_name: "${PROJECT_NAME}_traefik"
command: --api.insecure=true --providers.docker
ports:
- '80:80'
# - '8080:8080' # Dashboard
volumes:
- /var/run/docker.sock:/var/run/docker.sock
// Allow from any origin
if (isset($_SERVER['HTTP_ORIGIN'])) {
// should do a check here to match $_SERVER['HTTP_ORIGIN'] to a
// whitelist of safe domains
header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Max-Age: 86400'); // cache for 1 day
}
// Access-Control headers are received during OPTIONS requests
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS");
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
header("Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}");
}
php_1 | [21-Apr-2020 17:10:43] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:43] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:43] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:43] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:43] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:43] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:43] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:44] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:44] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:44] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:44] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:44] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:44] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:44] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:45] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:45] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:45] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:45] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:45] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:45] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:45] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:47] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:47] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:47] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:47] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:47] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:47] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:47] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:48] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:48] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:48] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:48] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:48] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:48] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:48] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:51] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:51] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:51] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:51] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:51] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:51] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:51] ERROR: FPM initialization failed
...