Код: Выделить всё
$cmd = '/var/www/mysite/node/node_modules/lib/node_modules/highcharts-export-server/bin/cli.js --infile /tmp/node_files/nso_2024-07-10__12.50.00_77003733f89002aca7337718298f07df.json --outfile /tmp/node_files/nso_2024-07-10__12.50.00_77003733f89002aca7337718298f07df.svg';
exec($cmd, $out, $retval);
Вывод $retval:
Код: Выделить всё
retval: [1]
Код: Выделить всё
out: [Array
(
[0] => __ ___ __ __ __
[1] => / / / (_)___ _/ /_ _____/ /_ ____ ______/ /______
[2] => / /_/ / / __ `/ __ \/ ___/ __ \/ __ `/ ___/ __/ ___/
[3] => / __ / / /_/ / / / / /__/ / / / /_/ / / / /_(__ )
[4] => /_/ /_/_/\__, /_/ /_/\___/_/ /_/\__,_/_/ \__/____/
[5] => ____//___/ __ _____
[6] => / ____/ ______ ____ _____/ /_ / ___/___ ______ _____ _____
[7] => / __/ | |/_/ __ \/ __ \/ ___/ __/ \__ \/ _ \/ ___/ | / / _ \/ ___/
[8] => / /____> /_____/_/|_/ .___/\____/_/ \__/ /____/\___/_/ |___/\___/_/
[10] => /_/
[11] => v3.1.1
)
]
Код: Выделить всё
__ ___ __ __ __
/ / / (_)___ _/ /_ _____/ /_ ____ ______/ /______
/ /_/ / / __ `/ __ \/ ___/ __ \/ __ `/ ___/ __/ ___/
/ __ / / /_/ / / / / /__/ / / / /_/ / / / /_(__ )
/_/ /_/_/\__, /_/ /_/\___/_/ /_/\__,_/_/ \__/____/
____//___/ __ _____
/ ____/ ______ ____ _____/ /_ / ___/___ ______ _____ _____
/ __/ | |/_/ __ \/ __ \/ ___/ __/ \__ \/ _ \/ ___/ | / / _ \/ ___/
/ /____>
Подробнее здесь: [url]https://stackoverflow.com/questions/78731918/highcharts-export-server-not-producing-svg-when-run-from-website[/url]