0

i am trying to convert .doc file to .html file using shell_exec command php..

for this i have written the below code:

  $result = shell_exec("soffice --headless --convert-to html /opt/lampp/htdocs/converter/public/uploads/resume/".$filename." 2>&1");
  echo $result;

but i am getting this when i run the project from the browser:

 /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)

please help i am new to shell_exec and ubuntu

Mohammed Sufian
  • 1,743
  • 6
  • 35
  • 62
  • How did you install Libreoffice? – Tomdarkness Apr 06 '14 at 00:34
  • @Tomdarkness sir actually i am not able to remember it, i googled and followed the instruction there...but unfortunately i forgot the website i have followed the instruction..please help.. – Mohammed Sufian Apr 06 '14 at 14:27
  • possible duplicate of [php shell command error GLIBCXX\_3.4.9 not found](http://stackoverflow.com/questions/20729067/php-shell-command-error-glibcxx-3-4-9-not-found) – Employed Russian Apr 06 '14 at 18:45

0 Answers0