PHP shell_exec only works for certain commands

馋奶兔 提交于 2019-12-04 13:19:08

Try this:

shell_exec("adb devices  2>&1")

Source: http://www.php.net/manual/en/function.shell-exec.php#106250

You should try to open the file /Applications/MAMP/Library/bin/envvars and then comment the four lines of if and else. This is looks like this:

#if test "x$DYLD_LIBRARY_PATH" != "x" ; then
#  DYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib:$DYLD_LIBRARY_PATH"
#else
#  DYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib"

It works fine for me! I hope that you can enjoy it. Good Lucky!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!