osx - How to use shell_exec xampp php in a Mac -


i cant figure out how can execute shell commands on php. must suppose echo parameters of mogrify return false. how on macbook pro yosemite? tried editing users permissions read/write/execute still no luck.. tried researching web , cant answer.

my code is:

<?php echo shell_exec("/opt/imagemagick/bin/mogrify"); ?> 

ok of solve kind of problem terminal application don't run on mac , returns null in kind of calling terminal apps shell_exec, exec, system etc. 1 of kind took me 24 hours know.. it's working dir.

// code took me 24 hours discover. exec('unset dyld_library_path ;'); putenv('dyld_library_path'); putenv('dyld_library_path=/usr/bin'); $voila = shell_exec("anything want execute!"); var_dump($voila); 

with work around problem fixed.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -