Skip navigation
Currently Being Moderated

This may be a silly question; permissions to run AIR.

Mar 22, 2013 10:21 AM

Tags: #air #php #runtime #commandline #access_is_denied #php_exec

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;)

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points