How to enable exec() in php?

笑着哭i 提交于 2019-12-31 05:32:07

问题


My exec function is not enabled, I need this function for one of my files. I would like to enable it inside my of php code if it's possible without having to make changes inside of my php.ini file.

Thank you


回答1:


The setting you need to change is disable_functions and as per the description in the manual:

This directive must be set in php.ini For example, you cannot set this in httpd.conf.

So unfortunately, the answer to your question is no.

With that said, there's usually a workaround so that you don't need to use exec at all. Might be worth explaining in a different question what you're trying to do and see if it's possible.



来源:https://stackoverflow.com/questions/58401997/how-to-enable-exec-in-php

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