我正在尝试使用.doc
命令将.html
文件转换为shell_exec
文件。
为此我写了下面的代码:
$result = shell_exec("soffice --headless --convert-to html /opt/lampp/htdocs/converter/public/uploads/resume/".$filename." 2>&1");
echo $result;
但是当我从浏览器运行项目时,我得到了这个:
/usr/lib/libreoffice/program/oosplash: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/libreoffice/program/../ure-link/lib/libuno_sal.so.3)
/usr/lib/libreoffice/program/oosplash: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/lib/libreoffice/program/../ure-link/lib/libuno_sal.so.3)
请帮助我是shell_exec
和ubuntu