Hi,
I am prototyping some functionality and want to use a commandline call to launch an AIR app. This is fine and dandy... does everything I want.
But...
I want to call that functionality via PHP eg:
<?PHP
$cmd = $pathToAirApp . " " . $escapedCommandLineArguments;
$returnvar = "unset";
$output = array();
exec($cmd,$output,$returnvar);
?>
And _that_ doesn't work.
What I am seeing is $returnvar set to 5 which... I think... means "Access is denied" as per this; http://www.hiteksoftware.com/knowledge/articles/049.htm
So...
Is there any way I can grant the appropriate permissions to allow AIR to run in this way or am I just doing something irredeemably stupid and insecure that is being blocked to protect me from myself?
Thanks,
G
ps: I know what I am sending is good because I can output the $cmd value as a .bat file and run that manually. (And, no, it doesn't work to exec() the bat file instead of the command line - it still gives $returnvar = 5;)
North America
Europe, Middle East and Africa
Asia Pacific