HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/wpforms/vendor_prefixed/mk-j/php_xlsxwriter/example-cli.php
<?php

namespace WPForms\Vendor;

include_once "xlsxwriter.class.php";
\ini_set('display_errors', 0);
\ini_set('log_errors', 1);
\error_reporting(\E_ALL & ~\E_NOTICE);
$filename = "example.xlsx";
$rows = array(array('2003', '1', '-50.5', '2010-01-01 23:00:00', '2012-12-31 23:00:00'), array('2003', '=B1', '23.5', '2010-01-01 00:00:00', '2012-12-31 00:00:00'));
$writer = new XLSXWriter();
$writer->setAuthor('Some Author');
foreach ($rows as $row) {
    $writer->writeSheetRow('Sheet1', $row);
}
$writer->writeToFile('example.xlsx');