Warning: `exec()` has been disabled for security reasons [duplicate]

假装没事ソ 提交于 2019-12-04 06:29:15

Just as additional information:

There is a php.ini directive called disable_functions. Functions added to this list will be disabled by PHP and when you try to execute those functions, you get this error. As mentioned, in all probability your hosting provider has added exec to the disabled list. This is a common practice in shared hosting. You will need a dedicated server if you really want to run exec (or some hosting provider who provides pseudo-exec functionality). It is a bad idea to trust a shared hosting provider who allows you to run exec unrestrained.

Those errors mean just what they say.

Fatal error: Call to undefined function execute() 

You are calling a function that doesn't exist.

Warning: exec() has been disabled for security reasons

Your web host has disabled the exec() method, you won't be able to run background scripts (like it appears you are attempting to do). You'll need to find another way to accomplish your goal, or find another web host.

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