Jump to content

exec() with Mac open command


Billiken

Recommended Posts

I want to do something like the following:

exec('open /Applications/Safari.app');

 

 

I can run exec on other commands like:

 

$output = exec('ls -ll);
echo $output;

 

And I can run the open command via Terminal, but I can't seem to run the open command via a PHP page using exec().

 

I've tried the permissions of the .app file at 777 and the open binary at 777.

 

Any suggestions?

Link to comment
https://forums.phpfreaks.com/topic/211724-exec-with-mac-open-command/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.