Code: Select all
exec('open /Applications/Safari.app');
Code: Select all
$output = exec('ls -ll);
echo $output;
I've tried the permissions of the .app file at 777 and the open binary at 777.
Any suggestions?
Moderator: General Moderators
Code: Select all
exec('open /Applications/Safari.app');
Code: Select all
$output = exec('ls -ll);
echo $output;
Gargoyle wrote:if what you are trying to do is call an application like safari and have it suddenly open in a new window or so, this isn't at all possible with PHP.
Code: Select all
/dev/null < exec('open /Applications/Safari.app');