是否可以在 php.ini 中启用“exec”?
这是我的代码:
$newstring = 'readfile,passthru,shell_exec,popen,telnet,friends';
ini_set('disable_functions', $newstring);
可能吗?或任何其他方式来启用它,除了 php.ini。因为我无法访问服务器中的 php.ini。我只想在这个项目的运行时这样做。
我检查了其他问题Enable exec function 但我没有得到任何解决方案。