Exec() not working!

I have this PHP:

$param = (…)
// The $param is correct, this is not a problem!
// -re token=123456

exec('program.php -r '.$param. $output);
var_dump($output);
// If work: this will execute the program.php with -r -re token=123456 -u “abc”

But not work!

The var_dump():
array(2) { [0]=> string(50) “'program.exe nÆo ‚ reconhecido como um comando interno” [1]=> string(56) “ou externo, um programa oper vel ou um arquivo em lotes.” }

In the BETA this show:

“PHP Warning: exec(): Unable to fork […]”.

I see the ExeOutput for PHP documentation using the “RunAProgram” but this is static.
The $param change every time, how I can use the “RunAProgram” with php based param?

I try use:

procedure ff(Param: String);
var                                  
MyProgram: String;                                     
begin                        
MyProgram := UnpackTemporaryResource("program.exe");
RunAProgram(MyProgram, Param, ExtractFilePath(MyProgram), false, SW_SHOWNORMAL);
end;         

With:
$param = urlencode(’-r -re token=123456 -u “abc”’);
$e = exo_runhescriptcom(“UserMain.ff|”.$param, “Error”);

if($e){
echo 't';
}else{
echo 'f';
}     

Result:
f

THIS NOT WORK!

I NEED TO USE THE EXEC() BECAUSE I NEED THE RETURN OF THE PROGRAM.EXE!

Note: Absolute path (C:/dir/location/program.exe) not work!

system() and exec() work in ExeOutput 2 if you modify the PHP.INI file like this:

Otherwise, the error you described is returned.

This will be added to the documentation which is being written at this time.