Answer the question
In order to leave comments, you need to log in
Why doesn't exec run the program?
Hello.
I need to convert html to rtf, for this I use unoconv. When manually launched from the console, everything works great. Next, I try to run the conversion from php:
<?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
echo "start";
$command = "ls";
$rez = exec($command, $output, $return_var);
print_r($rez);
print_r($output);
print_r($return_var);
$command = "unoconv --help";
$rez = exec($command, $output2, $return_var2);
print_r($rez);
print_r($output2);
print_r($return_var2);
echo "stop";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question