Hi, I have a strange problem using the exec command.
I have the following php code :
<?php
error_reporting(E_ALL);
ini_set('display_errors','On');
$accountBase = "HORAIREMOBILE";
$primaryUser = "DUM";
$secondaryUser = "DUM";
$result = exec(escapeshellcmd("/home/evidian/utils/getAccount ".escapeshellarg($accountBase)." ".escapeshellarg($primaryUser)." ".escapeshellarg($secondaryUser)),$output,$return_val);
echo $result;
?>
When I execute the command from the CLI, with any user, it just works fine, and shows my the result (basically a JSON formated output).
However, when I call the code frome the apache server, it simply returns nothing.
Could anybody help me with this issue ?