application/octet-stream - правильно
application/zip
class Logger
{
private $logfile;
private function __construct()
{}
public function __destruct()
{
$this->log('');
fclose($this->logfile);
}
public function log($string)
{
fwrite($this->logfile, $string . "\n");
fflush($this->logfile);
}
static public function getCommon($tag)
{
$logDir = base_path() . '/../logs/' . $tag; // это в Ларавели, без нее $_SERVER['DOCUMENT_ROOT'] или абсолютный путь (если должно работать в консоли/кроне)
if(!file_exists($logDir)) {
mkdir($logDir);
}
$logger = new Logger();
$logger->logfile = fopen($logDir . '/' . date('Y-m-d') . '.log', 'at');
$logger->log(date('Y-m-d H:i:s') . "\n");
return $logger;
}
}
[14] => [A2, A7, A8, A9, A10],
[15] => [A9],
[17] => [A1, A2, A4, A6, A8, A9],
[18] => [A1, A2, A4, A6, A8, A9],
[32] => [A5, A7, A9],
[33] => [A5, A7, A9],
<?php FixMoney($data[$user['cash']]) ?>
<?php FixMoney($data[$user]['cash']) ?>
{
"config": {
"platform-check": false
}
}