I figured out that the problem comes from this code in the configuration file:
PHP Code:
if ((isset($relative_script_path)) && ($relative_script_path != ".") && ($relative_script_path != "..")) { exit();
}
Without this line, the script runs fine. I put the exec() script in the search root directory and set $relative_script_path = '.', but it didn't work. Hmm...