“exec() has been disabled for security reasons” & “Undefined variable”

后端 未结 2 919
野趣味
野趣味 2021-01-28 07:21

I found a cool MySQL backup script. It\'s working fine on some hosting companies. Now I\'m trying it on a different host running PHP Version 5.2.8.

I have a php.ini fi

相关标签:
2条回答
  • 2021-01-28 07:39

    Another possibility is that exec has been disable by PHP safe mode. From the referenced page, it looks like you could avoid this by putting the script you are exec-ing into the PHP "safe mode exec dir".

    0 讨论(0)
  • 2021-01-28 08:01

    Many hosts disable certain functions, and do not allow overriding them in custom php.ini's (just because PHP offers the ability to have a custom php.ini, does not mean that all PHP setups are necessarily configured to allow you to change that option via such).

    Chances are that host simply doesn't allow exec() period. Not much you can really do about that.

    0 讨论(0)
提交回复
热议问题