This topic created in 578 days ago, the information mentioned may be changed or developed.
$command = 'ffprobe -i "/www/wwwroot/中島美嘉 - Wish (バズリズム02 2022.11.12).ts" ' ;
echo shell_exec($command);
如果出现日文或中文或韩文,不会有任何输出,英文正常,这是为什么,chatgpt 给的回答都不行
这个 shell 命令在终端运行正常
Supplement 1 · Oct 3, 2024
$command = 'wc -c "/www/wwwroot/中島美嘉 - Wish (バズリズム02 2022.11.12).ts" ' ;
echo shell_exec($command);
$command = echo "/www/wwwroot/中島美嘉 - Wish (バズリズム02 2022.11.12).ts" ' ;
echo shell_exec($command);
这两个都可以正常运行
 |
|
1
sagaxu Oct 3, 2024
PHP 编码问题,先确认源码文件是不是 UTF-8(without BOM)编码
|